consts.go 807 B

12345678910111213141516171819202122232425262728293031
  1. package consts
  2. import (
  3. "context"
  4. "github.com/gogf/gf/v2/frame/g"
  5. )
  6. const (
  7. AreaType = iota + 1 //省份
  8. CityType //城市
  9. CitySpecialType //直辖市
  10. HotBidding = iota - 2
  11. CityBidding
  12. ClassBidding
  13. )
  14. var (
  15. SettingPageSize = g.Cfg().MustGet(context.Background(), "listPageSetting.pageSize").Int()
  16. SettingBidCacheTime = g.Cfg().MustGet(context.Background(), "listPageSetting.cacheTime").Int64()
  17. BiddingListMaxTotal = g.Cfg().MustGet(context.Background(), "listPageSetting.maxBidSize", 5000).Int()
  18. WebDomainFormat = g.Cfg("global").MustGet(context.Background(), "webDomainFormat").String()
  19. TopTypeMap = map[string]string{
  20. "招标预告": "预告",
  21. "招标公告": "招标",
  22. "招标结果": "结果",
  23. "招标信用信息": "其它",
  24. }
  25. )