根据坐标得到城市

This commit is contained in:
苏尹岚
2020-09-24 18:18:55 +08:00
parent 5ac20742ea
commit 5348bcb82e
5 changed files with 114 additions and 0 deletions

View File

@@ -139,6 +139,21 @@ func (c *CmsController) GetCoordinateDistrictCode() {
})
}
// @Title 根据坐标得到城市
// @Description 根据坐标得到城市
// @Param token header string true "认证token"
// @Param lng query number true "经度"
// @Param lat query number true "纬度"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetCoordinateTownInfo [get]
func (c *CmsController) GetCoordinateTownInfo() {
c.callGetCoordinateTownInfo(func(params *tCmsGetCoordinateTownInfoParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetCoordinateTownInfo(params.Ctx, params.Lng, params.Lat)
return retVal, "", err
})
}
// @Title 得到配置参数
// @Description 得到配置参数
// @Param token header string true "认证token"