重新初始化仓库

This commit is contained in:
2021-11-30 17:50:21 +08:00
commit 6c31164c37
37 changed files with 3339 additions and 0 deletions

22
define/form/config.go Normal file
View File

@ -0,0 +1,22 @@
// Package form...
//
// Description : form...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2021-08-09 10:13 下午
package form
// CreateOrUpdateConfig 创建/更新配置表单
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 10:15 下午 2021/8/9
type CreateOrUpdateConfig struct {
NamespaceID int64 `json:"namespace_id"` // 命名空间ID
Namespace string `json:"namespace"` // 命名空间
Key string `json:"key"` // 配置的key
Value string `json:"value"` // 配置的值
OperateUserID string `json:"operate_user_id"` // 操作人ID
Description string `json:"description"` // 配置描述
}

31
define/form/namespace.go Normal file
View File

@ -0,0 +1,31 @@
// Package form...
//
// Description : 命名空间操作相关表单
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2021-08-09 2:19 下午
package form
// CreateNamespace 创建命名空间的表单
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2:19 下午 2021/8/9
type CreateNamespace struct {
Namespace string `json:"namespace"` // 要创建的命名空间
Name string `json:"name"` // 命名空间的名称
Description string `json:"description"` // 命名空间的描述
CreateUserID string `json:"create_user_id"` // 创建人ID
}
// ActiveNamespace 激活命名空间
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 9:17 下午 2021/8/9
type ActiveNamespace struct {
NamespaceID int64 `json:"namespace_id"` // 命名空间ID
Namespace string `json:"namespace"` // 命名空间
UpdateUserID string `json:"update_user_id"` // 更新的用户ID
}