添加网格查询接口
This commit is contained in:
parent
c763b90fd2
commit
140f01670d
@ -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<GridDTO> 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user