wanglang 1 日 前
コミット
9746846128
共有1 個のファイルを変更した32 個の追加0 個の削除を含む
  1. 32 0
      trade-client/src/main/java/com/trade/client/system/controller/SysCountryController.java

+ 32 - 0
trade-client/src/main/java/com/trade/client/system/controller/SysCountryController.java

@@ -0,0 +1,32 @@
+package com.trade.client.system.controller;
+
+import com.trade.common.core.domain.ResponseResult;
+import com.trade.service.system.domain.SysCountry;
+import com.trade.service.system.service.SysCountryService;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @description:
+ * @Author: wanglang
+ * @Date: 2024/9/19 21:17
+ * @Version: 1.0
+ */
+@RestController
+@RequestMapping("/system/country")
+public class SysCountryController {
+
+    @Resource
+    private SysCountryService sysCountryService;
+
+    @ApiOperation(value = "获取国家列表", notes = "获取国家列表")
+    @PostMapping("/get")
+    public ResponseResult<List<SysCountry>> getCountryList() {
+        return ResponseResult.success(sysCountryService.queryCountryList());
+    }
+}