mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-25 08:20:26 +08:00
IP库增加制品管理/统计中相关区域名称可以显示别名
This commit is contained in:
32
internal/db/models/ip_library_artifact_model.go
Normal file
32
internal/db/models/ip_library_artifact_model.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package models
|
||||
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
|
||||
// IPLibraryArtifact IP库制品
|
||||
type IPLibraryArtifact struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
FileId uint64 `field:"fileId"` // 文件ID
|
||||
LibraryFileId uint32 `field:"libraryFileId"` // IP库文件ID
|
||||
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||||
Meta dbs.JSON `field:"meta"` // 元数据
|
||||
IsPublic bool `field:"isPublic"` // 是否为公用
|
||||
Code string `field:"code"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type IPLibraryArtifactOperator struct {
|
||||
Id any // ID
|
||||
Name any // 名称
|
||||
FileId any // 文件ID
|
||||
LibraryFileId any // IP库文件ID
|
||||
CreatedAt any // 创建时间
|
||||
Meta any // 元数据
|
||||
IsPublic any // 是否为公用
|
||||
Code any // 代号
|
||||
State any // 状态
|
||||
}
|
||||
|
||||
func NewIPLibraryArtifactOperator() *IPLibraryArtifactOperator {
|
||||
return &IPLibraryArtifactOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user