21 lines
672 B
Go
21 lines
672 B
Go
package v1
|
|
|
|
import (
|
|
"likedream-goframe/internal/ent/cptask"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
type UploadImageReq struct {
|
|
g.Meta `path:"/image/upload" method:"post" tags:"Image" summary:"上传图片"`
|
|
File *ghttp.UploadFile `json:"file" v:"required#请上传图片"`
|
|
CpUserId int64 `json:"cpUserId" v:"required#请指定今日校园用户"`
|
|
TaskType cptask.TaskType `json:"taskType" v:"required#请指定任务类型"`
|
|
}
|
|
|
|
type PreviewImageReq struct {
|
|
g.Meta `path:"/image/preview" method:"get" tags:"Image" summary:"预览图片"`
|
|
Key string `json:"key" v:"required#请指定图片key" in:"query"`
|
|
}
|