|
|
@@ -0,0 +1,29 @@
|
|
|
+package com.wx.blink.backend.controller;
|
|
|
+
|
|
|
+import com.wx.blink.backend.domain.dataobject.CountryDO;
|
|
|
+import com.wx.blink.backend.repository.CountryRepository;
|
|
|
+import com.wx.blink.base.common.annoation.NoNeedLogin;
|
|
|
+import com.wx.blink.base.common.domain.ResponseDTO;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@Tag(name = "国家管理")
|
|
|
+public class CountryController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private CountryRepository repository;
|
|
|
+
|
|
|
+ @Operation(summary = "查询国家列表")
|
|
|
+ @GetMapping("/supports/country/query")
|
|
|
+ @NoNeedLogin
|
|
|
+ public ResponseDTO<List<CountryDO>> supportsCountryQuery() {
|
|
|
+ return ResponseDTO.ok(repository.selectList(null));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|