51 lines
805 B
Go
51 lines
805 B
Go
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{}
|
|
}
|