feat: 添加地图提示接口并修改时间地图请求方法
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
新增地图提示接口/maptip,同时将/timemap接口的请求方法从POST改为GET
This commit is contained in:
@@ -39,3 +39,12 @@ func (s *MapService) GetTimeMap() (ret []model.MapConfig) {
|
||||
return
|
||||
|
||||
}
|
||||
func (s *MapService) GetTimeTip() (ret []model.MapConfig) {
|
||||
//cacheKey := strings.Join([]string{fmt.Sprintf("%d", p1), fmt.Sprintf("%d", p2)}, ":")
|
||||
m := dbm_notenable(s.Model)
|
||||
|
||||
m.Where(`is_time_space`, 1).Scan(&ret)
|
||||
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user