From 140f01670d3b4f8d1e0fe2a3b75ed238f9913cae Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Tue, 28 Dec 2021 15:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BD=91=E6=A0=BC=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remote/grid/IGridRemoteService.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/main/java/cn/com/tenlion/commonpopulation/remote/grid/IGridRemoteService.java diff --git a/src/main/java/cn/com/tenlion/commonpopulation/remote/grid/IGridRemoteService.java b/src/main/java/cn/com/tenlion/commonpopulation/remote/grid/IGridRemoteService.java new file mode 100644 index 0000000..b61450e --- /dev/null +++ b/src/main/java/cn/com/tenlion/commonpopulation/remote/grid/IGridRemoteService.java @@ -0,0 +1,45 @@ +package cn.com.tenlion.commonpopulation.remote.grid; + +import cn.com.tenlion.commonpopulation.pojo.dtos.grid.GridDTO; +import ink.wgink.annotation.rpc.rest.RemoteService; +import ink.wgink.annotation.rpc.rest.method.RemoteGetMethod; +import ink.wgink.annotation.rpc.rest.params.RemotePathParams; +import ink.wgink.annotation.rpc.rest.params.RemoteQueryParams; +import ink.wgink.annotation.rpc.rest.params.RemoteServerParams; + +import java.util.List; + +/** + * @ClassName: IGridRemoteService + * @Description: 调取网格信息 + * @Author: CodeFactory + * @Date: 2021-09-24 17:03:54 + * @Version: 3.0 + **/ +@RemoteService +public interface IGridRemoteService { + + /** + * 通过地区编码,获取此地区下的网格集合 + * @param remotePath + * @param areaCode + * @param access_token + * @return + */ + @RemoteGetMethod("/resource/grid/list/area-code/{areaCode}") + List getGridList(@RemoteServerParams String remotePath, + @RemotePathParams("areaCode") String areaCode, + @RemoteQueryParams("access_token") String access_token); + + /** + * 通过网格ID获取详情 + * @param remotePath + * @param gridId + * @param access_token + * @return + */ + @RemoteGetMethod("/resource/grid/get/{gridId}") + GridDTO getGrid(@RemoteServerParams String remotePath, + @RemotePathParams("gridId") String gridId, + @RemoteQueryParams("access_token") String access_token); +}