2 Commits e0ec3b7e6e ... 466d916275

Auteur SHA1 Bericht Datum
  wanglang 466d916275 Merge branch 'master' of http://192.168.0.200:3000/wanglang/trade-platform 1 maand geleden
  wanglang 9746846128 城市接口 1 maand geleden

+ 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());
+    }
+}