feat:完善项目信息

This commit is contained in:
henry
2022-01-10 17:43:43 +08:00
parent 4b5acca5c3
commit 6712feec35
19 changed files with 1169 additions and 38 deletions

View File

@ -2,6 +2,7 @@ package controller
import (
"SciencesServer/app/api/admin/model"
config2 "SciencesServer/app/basic/config"
"SciencesServer/app/basic/controller"
model2 "SciencesServer/app/common/model"
"SciencesServer/config"
@ -84,6 +85,14 @@ func (c *Config) Form(params map[string]interface{}) error {
})
}
// Area 区域信息
func (c *Config) Area(key string) map[string]string {
if key == "" {
key = config.DefaultChinaAreaCode
}
return config2.MemoryForAreaInfo[key]
}
func NewConfig() ConfigHandle {
return func() *Config {
return &Config{}