文件存储-增加文件上传记录接口,增加定时同步租户文件存储容量信息接口
This commit is contained in:
20
controller/file_controller.go
Normal file
20
controller/file_controller.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"oss/model/dto"
|
||||
"oss/service"
|
||||
)
|
||||
|
||||
type file struct{}
|
||||
|
||||
var File = new(file)
|
||||
|
||||
// init 初始化表单配置
|
||||
func init() {
|
||||
}
|
||||
|
||||
// UploadFile 上传文件
|
||||
func (c *file) UploadFile(ctx context.Context, req *dto.UploadFileReq) (res *dto.UploadFileRes, err error) {
|
||||
return service.File.UploadFile(ctx, req)
|
||||
}
|
||||
Reference in New Issue
Block a user