Documentation ¶
Index ¶
- func DefaultMenu() []system.SysBaseMenu
- type AddAssetManagerReq
- type AddMenuAuthorityInfo
- type AddSystemUserReq
- type AddTagReq
- type AnsibleCommandReq
- type AssociateAssetReq
- type BaseClaims
- type BuildProjectReq
- type CasbinInReceive
- type CasbinInfo
- type ChangePasswordReq
- type ChangeUserInfo
- type CreateAssetReq
- type CreateInstanceReq
- type CreatePlayBookReq
- type CreateProjectReq
- type CustomClaims
- type DeployGameReq
- type GetAssetReq
- type GetAssetTagsReq
- type GetAssociateAssetsListReq
- type GetAsstesByTagsReq
- type GetGameServerIdReq
- type GetProjectBuildHistoryReq
- type GetProjectBuildStatusReq
- type GetProjectDeployInfoReq
- type GetProjectDeployStatusReq
- type GetServerListReq
- type GetSystemUsersReq
- type GetUsersTagsReq
- type InitDB
- type Login
- type PlayPlayBookReq
- type Register
- type RollBack
- type SearchApiParams
- type SetDefaultAssetManagerReq
- type SetUserAuth
- type SetUserAuthorities
- type SyncAssetInfoReq
- type SyncLaunchTemplatesReq
- type SyncSecureGroupReq
- type SysAuthorityBtnReq
- type SysAutoHistory
- type SysDictionaryDetailSearch
- type SysDictionarySearch
- type SysOperationRecordSearch
- type TagAssetReq
- type TagUserReq
- type UpdateGameReq
- type UpdateServerReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMenu ¶
func DefaultMenu() []system.SysBaseMenu
Types ¶
type AddMenuAuthorityInfo ¶
type AddMenuAuthorityInfo struct { Menus []system.SysBaseMenu `json:"menus"` AuthorityId uint `json:"authorityId"` // 角色ID }
Add menu authority info structure
type AnsibleCommandReq ¶
多机执行命令
type AssociateAssetReq ¶
系统用户关联资产
type BaseClaims ¶
type BuildProjectReq ¶
type BuildProjectReq struct { ProjectName string `json:"projectName"` BranchName string `json:"branchName"` Env string `json:"env"` Network string `json:"network"` }
构建项目
type CasbinInReceive ¶
type CasbinInReceive struct { AuthorityId uint `json:"authorityId"` // 权限id CasbinInfos []CasbinInfo `json:"casbinInfos"` }
Casbin structure for input parameters
type ChangePasswordReq ¶
type ChangePasswordReq struct { ID uint `json:"-"` // 从 JWT 中提取 user id,避免越权 Password string `json:"password"` // 密码 NewPassword string `json:"newPassword"` // 新密码 }
Modify password structure
type ChangeUserInfo ¶
type ChangeUserInfo struct { ID uint `gorm:"primarykey"` // 主键ID NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"` // 用户昵称 Phone string `json:"phone" gorm:"comment:用户手机号"` // 用户手机号 AuthorityIds []uint `json:"authorityIds" gorm:"-"` // 角色ID Email string `json:"email" gorm:"comment:用户邮箱"` // 用户邮箱 HeaderImg string `json:"headerImg" gorm:"default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像"` // 用户头像 SideMode string `json:"sideMode" gorm:"comment:用户侧边主题"` // 用户侧边主题 Enable int `json:"enable" gorm:"comment:冻结用户"` //冻结用户 Authorities []system.SysAuthority `json:"-" gorm:"many2many:sys_user_authority;"` }
type CreateAssetReq ¶
手动添加资产
type CreateInstanceReq ¶
type CreateInstanceReq struct { LaunchTemplateId string `json:"launchTemplateId"` // 启动模板ID Amount int32 `json:"amount"` // 数量 }
创建ESC实例请求,从已创建模板种创建实例
type CreatePlayBookReq ¶
type CreatePlayBookReq struct { PlayBookName string `json:"playBookName"` PlayBookContent []model.PlayBookModel `json:"playBookContent"` Comment string `json:"comment"` }
创建新任务剧本
type CustomClaims ¶
type CustomClaims struct { BaseClaims BufferTime int64 jwt.StandardClaims }
Custom claims structure
type DeployGameReq ¶
type DeployGameReq struct { PackageUrl string `json:"packageUrl"` AssetId string `json:"assetId"` // 资产ID User string `json:"user"` // 系统用户名 Env string `json:"env"` // test, product }
部署项目
type GetAssetReq ¶
type GetAssetReq struct { AssetType string `json:"assetType"` Network string `json:"network"` request.PageInfo }
获取资产
type GetAssociateAssetsListReq ¶
type GetAssociateAssetsListReq struct {
Network string `json:"network"` // 内外网
}
获取资产用户关联关系列表
type GetAsstesByTagsReq ¶
type GetAsstesByTagsReq struct { Network string `json:"network"` AssetTags []uint `json:"assetTags"` UserTags []uint `jons:"userTags"` }
获取符合标签的“用户@ip”
type GetGameServerIdReq ¶
type GetGameServerIdReq struct { User string `json:"User"` UniqueKey string `json:"uniqueKey"` HostIP string `json:"HostIP"` }
查询服务器ID
type GetProjectBuildHistoryReq ¶
type GetProjectBuildHistoryReq struct { ProjectName string `json:"projectName"` BranchName string `json:"branchName"` Network string `json:"network"` request.PageInfo }
获取项目历史构建
type GetProjectBuildStatusReq ¶
type GetProjectBuildStatusReq struct {
RequestId string `json:"requestId"`
}
查询构建状态
type GetProjectDeployInfoReq ¶
type GetProjectDeployInfoReq struct { ProjectName string `json:"projectName"` BranchName string `json:"branchName"` Network string `json:"network"` }
查询部署信息
type GetProjectDeployStatusReq ¶
type GetProjectDeployStatusReq struct {
RequestId string `json:"requestId"`
}
查询部署状态
type GetServerListReq ¶
type GetServerListReq struct { ProjectName string `json:"projectName"` BranchName string `json:"branchName"` Network string `json:"network"` }
获取服务器列表
type GetSystemUsersReq ¶
系统用户-- 云服务器,MySQL,redis等的登陆用户 获取系统用户
type InitDB ¶
type InitDB struct { DBType string `json:"dbType"` // 数据库类型 Host string `json:"host"` // 服务器地址 Port string `json:"port"` // 数据库连接端口 UserName string `json:"userName" binding:"required"` // 数据库用户名 Password string `json:"password"` // 数据库密码 DBName string `json:"dbName" binding:"required"` // 数据库名 }
func (*InitDB) MysqlEmptyDsn ¶
MysqlEmptyDsn msyql 空数据库 建库链接 Author SliverHorn
func (*InitDB) PgsqlEmptyDsn ¶
PgsqlEmptyDsn pgsql 空数据库 建库链接 Author SliverHorn
func (*InitDB) ToMysqlConfig ¶
ToMysqlConfig 转换 config.Mysql Author [SliverHorn](https://github.com/SliverHorn)
func (*InitDB) ToPgsqlConfig ¶
ToPgsqlConfig 转换 config.Pgsql Author [SliverHorn](https://github.com/SliverHorn)
type Login ¶
type Login struct { Username string `json:"username"` // 用户名 Password string `json:"password"` // 密码 Captcha string `json:"captcha"` // 验证码 CaptchaId string `json:"captchaId"` // 验证码ID }
User login structure
type PlayPlayBookReq ¶
type PlayPlayBookReq struct {
PlayBookName string `json:"playBookName"`
}
执行剧本
type Register ¶
type Register struct { Username string `json:"userName" example:"用户名"` Password string `json:"passWord" example:"密码"` NickName string `json:"nickName" example:"昵称"` HeaderImg string `json:"headerImg" example:"头像链接"` AuthorityId uint `json:"authorityId" swaggertype:"string" example:"int 角色id"` Enable int `json:"enable" swaggertype:"string" example:"int 是否启用"` AuthorityIds []uint `json:"authorityIds" swaggertype:"string" example:"[]uint 角色id"` Phone string `json:"phone" example:"电话号码"` Email string `json:"email" example:"电子邮箱"` }
Register User register structure
type RollBack ¶
type RollBack struct { ID int `json:"id" form:"id"` // 主键ID DeleteTable bool `json:"deleteTable" form:"deleteTable"` // 是否删除表 }
GetById Find by id structure
type SearchApiParams ¶
type SearchApiParams struct { system.SysApi request.PageInfo OrderKey string `json:"orderKey"` // 排序 Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true }
api分页条件查询及排序结构体
type SetDefaultAssetManagerReq ¶
type SetDefaultAssetManagerReq struct {
Name string `json:"name"`
}
设置默认资产管理角色
type SetUserAuth ¶
type SetUserAuth struct {
AuthorityId uint `json:"authorityId"` // 角色ID
}
Modify user's auth structure
type SetUserAuthorities ¶
Modify user's auth structure
type SyncLaunchTemplatesReq ¶
type SyncLaunchTemplatesReq struct {
AssetManagerName string `json:"assetManagerName"`
}
从云中拉取ECS实例启动模板信息
type SyncSecureGroupReq ¶
type SyncSecureGroupReq struct { RegionId string `json:"regionId"` Name string `json:"name"` // 资产管理员角色名字 }
使用资产管理角色从云服务商中同步安全组信息
type SysAuthorityBtnReq ¶
type SysAutoHistory ¶
type SysDictionaryDetailSearch ¶
type SysDictionaryDetailSearch struct { system.SysDictionaryDetail request.PageInfo }
type SysDictionarySearch ¶
type SysDictionarySearch struct { system.SysDictionary request.PageInfo }
type SysOperationRecordSearch ¶
type SysOperationRecordSearch struct { system.SysOperationRecord request.PageInfo }
type TagAssetReq ¶
给资产打标签
type TagUserReq ¶
给系统用户打标签
type UpdateGameReq ¶
type UpdateGameReq struct { Package string `json:"package"` UpdateType string `json:"updateType"` // part, all ServerIds []uint32 `json:"serverIds"` // 如果是part }
更新项目