Documentation
¶
Index ¶
- type Config
- type FileInfo
- type UploadResponse
- type UploadService
- func (this_ *UploadService) GetFileSavePath(filePath string) string
- func (this_ *UploadService) GetWebApi() (webApi *web.WebApi)
- func (this_ *UploadService) Save(uploadFile *web.UploadFile, quality int) (res *FileInfo, err error)
- func (this_ *UploadService) Upload(request *web.WebRequest) (res any, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadResponse ¶
type UploadResponse struct {
Files []*FileInfo `json:"files"`
}
type UploadService ¶
type UploadService struct {
*Config
}
func NewUploadService ¶
func NewUploadService(cfg *Config) *UploadService
func (*UploadService) GetFileSavePath ¶
func (this_ *UploadService) GetFileSavePath(filePath string) string
func (*UploadService) GetWebApi ¶
func (this_ *UploadService) GetWebApi() (webApi *web.WebApi)
func (*UploadService) Save ¶
func (this_ *UploadService) Save(uploadFile *web.UploadFile, quality int) (res *FileInfo, err error)
func (*UploadService) Upload ¶
func (this_ *UploadService) Upload(request *web.WebRequest) (res any, err error)
Click to show internal directories.
Click to hide internal directories.