35 lines
736 B
Go
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
|
||
|
}
|