feat:完善信息
This commit is contained in:
50
app/api/enterprise/controller/config/instance.go
Normal file
50
app/api/enterprise/controller/config/instance.go
Normal file
@ -0,0 +1,50 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"SciencesServer/app/basic/config"
|
||||
config2 "SciencesServer/config"
|
||||
)
|
||||
|
||||
type Config struct{}
|
||||
|
||||
// Basic 基础配置信息
|
||||
func (c *Config) Basic() {
|
||||
|
||||
}
|
||||
|
||||
// Config 配置信息
|
||||
func (c *Config) Config() {
|
||||
|
||||
}
|
||||
|
||||
// Identity 身份信息
|
||||
func (c *Config) Identity() map[int]string {
|
||||
return config.TenantUserIdentityData
|
||||
}
|
||||
|
||||
// Transaction 交易信息
|
||||
func (c *Config) Transaction() map[int]string {
|
||||
return config.TechnologyTransactionData
|
||||
}
|
||||
|
||||
// Industry 行业信息
|
||||
func (c *Config) Industry() {
|
||||
|
||||
}
|
||||
|
||||
// Research 研究领域信息
|
||||
func (c *Config) Research() {
|
||||
|
||||
}
|
||||
|
||||
// Area 区域信息
|
||||
func (c *Config) Area(key string) map[string]string {
|
||||
if key == "" {
|
||||
key = config2.DefaultChinaAreaCode
|
||||
}
|
||||
return config2.SettingAreaInfo[key]
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
return &Config{}
|
||||
}
|
Reference in New Issue
Block a user