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