repository

package
v0.0.0-...-87ae443 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppRepository = &appRepository{}
View Source
var BucketRepository = &bucketRepository{}
View Source
var FileRepository = &fileRepository{}

Functions

This section is empty.

Types

type App

type App struct {
	Id              int64  `xorm:"bigint 'id' autoincr pk notnull comment('主键')" json:"id"`
	AccessKeyId     string `xorm:"varchar(50) 'access_key_id' notnull default('') comment('访问秘钥ID')" json:"accessKeyId"`
	AccessKeySecret string `xorm:"varchar(50) 'access_key_secret' notnull default('') comment('访问秘钥')" json:"accessKeySecret"`
	Endpoint        string `xorm:"varchar(200) 'endpoint' notnull default('') comment('端点')" json:"endpoint"`
	InnerEndpoint   string `xorm:"varchar(200) 'inner_endpoint' notnull default('') comment('内部端点')" json:"innerEndpoint"`
	Status          int    `xorm:"int 'status' notnull default(1) comment('状态,0:禁用;1:正常')" json:"status"`
	DelStatus       int    `xorm:"int 'del_status' notnull default(0) comment('删除状态,0:未删除;1:已删除')" json:"-"`
	CreateTime      string `xorm:"datetime 'create_time' notnull comment('创建时间')" json:"createTime"`
	UpdateTime      string `xorm:"datetime 'update_time' notnull comment('更新时间')" json:"updateTime"`
}

func (*App) TableComment

func (*App) TableComment() string

type Bucket

type Bucket struct {
	Id            int64  `xorm:"bigint 'id' autoincr pk notnull comment('主键')" json:"id"`
	AppId         int64  `xorm:"bigint 'app_id' notnull default(0) comment('应用ID')" json:"appId"`
	BucketType    int    `xorm:"int 'bucket_type' notnull default(1) comment('空间类型,1:公有;2:私有')" json:"bucketType"`
	Name          string `xorm:"varchar(200) 'name' notnull default('') comment('名称')" json:"name"`
	Domain        string `xorm:"varchar(200) 'domain' notnull default('') comment('域名')" json:"domain"`
	ProcessConfig string `xorm:"text 'process_config' comment('处理配置')" json:"processConfig"`
	Status        int    `xorm:"int 'status' notnull default(1) comment('状态,0:禁用;1:正常')" json:"status"`
	DelStatus     int    `xorm:"int 'del_status' notnull default(0) comment('删除状态,0:未删除;1:已删除')" json:"-"`
	CreateTime    string `xorm:"datetime 'create_time' notnull comment('创建时间')" json:"createTime"`
	UpdateTime    string `xorm:"datetime 'update_time' notnull comment('更新时间')" json:"updateTime"`
}

func (*Bucket) TableComment

func (*Bucket) TableComment() string

type File

type File struct {
	Id             int64  `xorm:"bigint 'id' autoincr pk notnull comment('ID')" json:"id"`
	BucketId       int64  `xorm:"bigint 'bucket_id' notnull default(0) comment('空间ID')" json:"bucketId"`
	FileKey        string `xorm:"varchar(500) 'file_key' notnull default('') index comment('文件键值')" json:"fileKey"`
	SourceFile     string `xorm:"varchar(1000) 'source_file' notnull default('') comment('原文件')" json:"sourceFile"`
	SourceFileSize int64  `xorm:"bigint 'source_file_size' notnull default(0) comment('原文件大小')" json:"sourceFileSize"`
	SourceFileType string `xorm:"varchar(50) 'source_file_type' notnull default('') comment('原文件类型')" json:"sourceFileType"`
	SourceFileAttr string `xorm:"varchar(3000) 'source_file_attr' notnull default('') comment('原文件属性')" json:"sourceFileAttr"`
	DelStatus      int    `xorm:"int 'del_status' notnull default(0) comment('删除状态,0:未删除;1:已删除')" json:"-"`
	CreateTime     string `xorm:"datetime 'create_time' notnull comment('创建时间')" json:"createTime"`
	UpdateTime     string `xorm:"datetime 'update_time' notnull comment('更新时间')" json:"updateTime"`
}

func (*File) TableComment

func (*File) TableComment() string

Jump to

Keyboard shortcuts

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