|
@@ -0,0 +1,27 @@
|
|
|
+package com.zjugis.module.system.api.district;
|
|
|
+
|
|
|
+import com.zjugis.framework.common.pojo.CommonResult;
|
|
|
+import com.zjugis.module.system.enums.ApiConstants;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author 陈俊
|
|
|
+ * @Date 2024/2/22 17:04
|
|
|
+ * @Version 1.0
|
|
|
+ */
|
|
|
+@FeignClient(name = ApiConstants.NAME)
|
|
|
+@Tag(name = "RPC 服务 - 行政区号")
|
|
|
+public interface DistrictApi {
|
|
|
+
|
|
|
+ String PREFIX = ApiConstants.PREFIX + "/district";
|
|
|
+
|
|
|
+ @GetMapping(PREFIX + "/get-qh-by-joincode")
|
|
|
+ @Operation(summary = "获取区号")
|
|
|
+ @Parameter(name = "joincode", description = "行政区号", example = "330100", required = true)
|
|
|
+ CommonResult<String> getQhByJoincode(@RequestParam("joincode") String joincode);
|
|
|
+}
|