Documentation
¶
Index ¶
Constants ¶
View Source
const ( FilePermissionReadOnly = 1 FilePermissionEditable = 2 FilePermissionDownload = 3 FilePermissionManage = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetCategory ¶
type AssetCategory struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
ParentID uint64 `json:"parentId,omitempty,string" gorm:"index;comment:父级ID"`
Name string `json:"name,omitempty" gorm:"index;size:50;comment:名称"`
Type int `json:"type,omitempty" gorm:"comment:类型 1-公共资产 2-项目资产 9-个人资产"`
ChildrenCount int `json:"childrenCount,omitempty" gorm:"comment:子级数量"`
FullPath string `json:"fullPath,omitempty" gorm:"size:200;comment:全路径"`
CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
}
func (*AssetCategory) TableComment ¶
func (*AssetCategory) TableComment() string
func (*AssetCategory) UnmarshalJSON ¶
func (ac *AssetCategory) UnmarshalJSON(b []byte) error
type CommonTestCase ¶
type CommonTestCase struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
Name string `json:"name,omitempty" gorm:"size:50;comment:通用测试用例名称"`
Remark string `json:"remark,omitempty" gorm:"size:200;comment:通用测试用例备注"`
CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"`
}
func (*CommonTestCase) TableComment ¶
func (*CommonTestCase) TableComment() string
func (*CommonTestCase) UnmarshalJSON ¶
func (ctc *CommonTestCase) UnmarshalJSON(b []byte) error
type CommonTestCaseItem ¶
type CommonTestCaseItem struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
TestCaseID uint64 `json:"testCaseId,omitempty,string" gorm:"index;comment:通用测试用例ID"`
Content string `json:"content,omitempty" gorm:"size:100;comment:测试用例内容"`
Remark string `json:"remark,omitempty" gorm:"size:200;comment:通用测试用例备注"`
CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"`
}
func (*CommonTestCaseItem) TableComment ¶
func (*CommonTestCaseItem) TableComment() string
func (*CommonTestCaseItem) UnmarshalJSON ¶
func (ctci *CommonTestCaseItem) UnmarshalJSON(b []byte) error
type File ¶
type File struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
CategoryID uint64 `json:"categoryId,omitempty,string" gorm:"index;comment:分类ID"`
OssConfigID uint64 `json:"ossConfigId,omitempty,string" gorm:"comment:OSS配置ID"`
OriginName string `json:"originName,omitempty" gorm:"size:100;comment:原始文件名"`
Name string `json:"name,omitempty" gorm:"size:100;comment:文件名"`
Suffix string `json:"suffix,omitempty" gorm:"size:20;comment:文件后缀"`
Size int64 `json:"size,omitempty" gorm:"comment:文件大小"`
ObjName string `json:"objName,omitempty" gorm:"size:200;comment:存储的对象名称"`
CategoryPath string `json:"categoryPath,omitempty" gorm:"size:200;comment:分类路径"`
CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"comment:创建者ID"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"`
DeleteTime gorm.DeletedAt `json:"deleteTime,omitempty" gorm:"index"`
}
func (*File) TableComment ¶
func (*File) UnmarshalJSON ¶
type FilePermission ¶
type FilePermission struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
FileID uint64 `json:"assetId,omitempty,string" gorm:"index;comment:资产ID"`
UserID uint64 `json:"userId,omitempty,string" gorm:"index;comment:用户ID"`
Permission uint8 `` /* 130-byte string literal not displayed */
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"`
}
FilePermission 文件权限
func (*FilePermission) TableComment ¶
func (*FilePermission) TableComment() string
func (*FilePermission) UnmarshalJSON ¶
func (af *FilePermission) UnmarshalJSON(b []byte) error
type FileVersion ¶
type FileVersion struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
FileID uint64 `json:"fileId,omitempty,string" gorm:"index;comment:文件ID"`
OssConfigID uint64 `json:"ossConfigId,omitempty,string" gorm:"comment:OSS配置ID"`
Size int64 `json:"size,omitempty" gorm:"comment:文件大小"`
ObjName string `json:"objName,omitempty" gorm:"size:200;comment:存储的对象名称"`
CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"comment:创建者ID"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
DeleteTime gorm.DeletedAt `json:"deleteTime,omitempty" gorm:"index"`
}
func (*FileVersion) TableComment ¶
func (*FileVersion) TableComment() string
func (*FileVersion) UnmarshalJSON ¶
func (af *FileVersion) UnmarshalJSON(b []byte) error
type OssConfig ¶
type OssConfig struct {
ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
Type string `json:"type,omitempty" gorm:"size:50;comment:类型 oss minio ks3 obs azure"`
Name string `json:"name,omitempty" gorm:"index;size:50;comment:名称"`
Endpoint string `json:"endpoint,omitempty" gorm:"size:200;comment:Endpoint"`
AccessKeyID string `json:"accessKeyId,omitempty" gorm:"size:100;comment:AccessKeyID"`
SecretAccessKey string `json:"secretAccessKey,omitempty" gorm:"size:100;comment:secretAccessKey"`
Bucket string `json:"bucket,omitempty" gorm:"size:50;comment:桶"`
Region string `json:"region,omitempty" gorm:"size:50;comment:Region"`
Secure int `json:"secure,omitempty" gorm:"comment:是否使用HTTPS 1-是 2-否"`
SelfDomain int `json:"selfDomain,omitempty" gorm:"comment:是否自定义域名 1-是 2-否"`
Status int `json:"status,omitempty" gorm:"comment:状态 1-启用 其他-禁用"`
CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"`
}
func (*OssConfig) TableComment ¶
func (*OssConfig) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.