Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHeader ¶
type FileHeader struct { weaver.AutoMarshal Filename string Header textproto.MIMEHeader Size int64 // contains filtered or unexported fields }
func (*FileHeader) WeaverMarshal ¶
func (x *FileHeader) WeaverMarshal(enc *codegen.Encoder)
func (*FileHeader) WeaverUnmarshal ¶
func (x *FileHeader) WeaverUnmarshal(dec *codegen.Decoder)
type ModBase ¶
type ModBase struct { weaver.AutoMarshal ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time `gorm:"index" json:"-"` CreatedBy uint `json:"createdBy" gorm:"column:createdBy;comment:创建者"` UpdatedBy uint `json:"updatedBy" gorm:"column:updatedBy;comment:更新者"` DeletedBy uint `json:"deletedBy" gorm:"column:deletedBy"` }
func (*ModBase) WeaverMarshal ¶
func (*ModBase) WeaverUnmarshal ¶
type ModUpload ¶
type ModUpload struct { weaver.AutoMarshal ModBase Name string `json:"name" gorm:"comment:文件名"` // 文件名 Url string `json:"url" gorm:"comment:文件地址"` // 文件地址 Tag string `json:"tag" gorm:"comment:文件标签"` // 文件标签 Key string `json:"key" gorm:"comment:编号"` // 编号 }
func (*ModUpload) WeaverMarshal ¶
func (*ModUpload) WeaverUnmarshal ¶
type PageInfo ¶
type PageInfo struct { weaver.AutoMarshal Page int `json:"page" form:"page"` // --页码 PageSize int `json:"pageSize" form:"pageSize"` // --每页大小 Keyword string `json:"keyword" form:"keyword"` // --关键字 }
func (*PageInfo) WeaverMarshal ¶
func (*PageInfo) WeaverUnmarshal ¶
type T ¶
type T interface { TUpDownload }
type TUpDownload ¶
type TUpDownload interface { Upload(_ context.Context, file ModUpload) error FindFile(_ context.Context, id uint) (ModUpload, error) DeleteFile(ctx context.Context, file ModUpload) (err error) EditFileName(_ context.Context, file ModUpload) (err error) GetFileRecordInfoList(_ context.Context, info PageInfo) (list []ModUpload, total int64, err error) }
Click to show internal directories.
Click to hide internal directories.