zky_mandate/api/v1/system/ueditor.go
2023-01-20 10:53:34 +08:00

35 lines
736 B
Go

/*
* @desc:ueditor编辑器
* @company:云南奇讯科技有限公司
* @Author: yixiaohu<yxh669@qq.com>
* @Date: 2022/11/17 14:15
*/
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
)
type UEditorConfigReq struct {
g.Meta `path:"/uEditor/action" tags:"UEditor" method:"get" summary:"获取UEditor配置"`
UEditorReq
}
type UEditorUpFileReq struct {
g.Meta `path:"/uEditor/action" tags:"UEditor" method:"post" summary:"UEditor上传"`
UEditorReq
}
type UEditorReq struct {
Action string `p:"action"`
Callback string `p:"callback"`
File *ghttp.UploadFile `p:"upfile" type:"file"`
}
type UEditorRes struct {
g.Meta `mime:"application/json"`
g.Map
}