Documentation ¶
Overview ¶
*
- @Time : 2020-04-26 19:57
- @Author : MassAdobe
- @Description: pojo
*
*
- @Time : 2020-04-27 21:58
- @Author : MassAdobe
- @Description: pojo
*
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InitConf InitConfig // 初始化配置 SysConf SysConfig // 系统配置 CurIp string // 当前宿主IP )
*
- @Author: MassAdobe
- @TIME: 2020/12/17 2:06 下午
- @Description: 配置项目
*
Functions ¶
This section is empty.
Types ¶
type InitConfig ¶
type InitConfig struct { NacosConfiguration bool `yaml:"NacosConfiguration"` // 是否开启nacos配置中心 NacosDiscovery bool `yaml:"NacosDiscovery"` // 是否开启nacos服务注册于发现 NacosServerIps string `yaml:"NacosServerIps"` // nacos地址 NacosServerPort uint64 `yaml:"NacosServerPort"` // nacos端口号 NacosClientNamespaceId string `yaml:"NacosClientNamespaceId"` // nacos命名空间 NacosClientTimeoutMs uint64 `yaml:"NacosClientTimeoutMs"` // 请求Nacos服务端的超时时间,默认是10000ms NacosDataId string `yaml:"NacosDataId"` // nacos配置文件名称 NacosGroup string `yaml:"NacosGroup"` // nacos配置组名称 ProgramEnv string `yaml:"ProgramEnv"` // 项目启动环境:DEBUG-开发,TEST-测试,RELEASE-生产 LogPath string `yaml:"LogPath"` // 日志输出路径(本地配置优先级最高) LogLevel string `yaml:"LogLevel"` // 日志级别(本地配置优先级最高) }
*
- @Author: MassAdobe
- @TIME: 2020/12/17 2:06 下午
- @Description: 初始化配置
*
type RequestUser ¶
type RequestUser struct {
UserId int `json:"user_id"` // 用户ID
}
*
- @Author: MassAdobe
- @TIME: 2020-04-27 21:58
- @Description: 用户基本信息
*
Click to show internal directories.
Click to hide internal directories.