初始
This commit is contained in:
34
api/v1/system/ueditor.go
Normal file
34
api/v1/system/ueditor.go
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* @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
|
||||
}
|
Reference in New Issue
Block a user