pojo

package
v1.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

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 // 初始化配置
	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"`               // 日志级别(本地配置优先级最高)
	LastVersion            string `yaml:"LastVersion"`            // 版本(上一个)
	CurVersion             string `yaml:"CurVersion"`             // 版本(当前)
}

*

  • @Author: MassAdobe
  • @TIME: 2020/12/17 2:06 下午
  • @Description: 初始化配置

*

type RequestUser

type RequestUser struct {
	UserId   int64  `json:"user_id"`   // 用户ID
	UserFrom string `json:"user_from"` // 用户来源
}

*

  • @Author: MassAdobe
  • @TIME: 2021/1/15 2:02 下午
  • @Description: 用户基本信息

*

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL