service_file

package
v0.0.0-...-cbb317a Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

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 GetById

type GetById struct {
	ID int `json:"id" form:"id"` // --主键ID
}

func (*GetById) Uint

func (r *GetById) Uint() uint

type GetRoleId

type GetRoleId struct {
	RoleId uint `json:"roleId" form:"roleId"` // --角色ID
}

type IdsReq

type IdsReq struct {
	Ids []uint `json:"ids" form:"ids"`
}

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 (x *ModBase) WeaverMarshal(enc *codegen.Encoder)

func (*ModBase) WeaverUnmarshal

func (x *ModBase) WeaverUnmarshal(dec *codegen.Decoder)

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) TableName

func (ModUpload) TableName() string

func (*ModUpload) WeaverMarshal

func (x *ModUpload) WeaverMarshal(enc *codegen.Encoder)

func (*ModUpload) WeaverUnmarshal

func (x *ModUpload) WeaverUnmarshal(dec *codegen.Decoder)

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 (x *PageInfo) WeaverMarshal(enc *codegen.Encoder)

func (*PageInfo) WeaverUnmarshal

func (x *PageInfo) WeaverUnmarshal(dec *codegen.Decoder)

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)
}

Jump to

Keyboard shortcuts

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