feat: 添加地图提示接口并修改时间地图请求方法
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

新增地图提示接口/maptip,同时将/timemap接口的请求方法从POST改为GET
This commit is contained in:
xinian
2026-03-01 09:28:00 +08:00
committed by cnb
parent f1a5b90ca5
commit 3656e43d3c
2 changed files with 20 additions and 1 deletions

View File

@@ -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
}