39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
package customerservice
|
|
|
|
import (
|
|
"hotgo/internal/model/entity"
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListReq struct {
|
|
g.Meta `path:"/customerService/list" method:"get" tags:"客服管理" summary:"客服列表"`
|
|
sysin.CustomerServiceListInp
|
|
}
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*entity.CustomerService `json:"list"`
|
|
}
|
|
type ViewReq struct {
|
|
g.Meta `path:"/customerService/view" method:"get" tags:"客服管理" summary:"客服详情"`
|
|
sysin.CustomerServiceViewInp
|
|
}
|
|
type ViewRes struct{ *entity.CustomerService }
|
|
type EditReq struct {
|
|
g.Meta `path:"/customerService/edit" method:"post" tags:"客服管理" summary:"新增编辑客服"`
|
|
sysin.CustomerServiceEditInp
|
|
}
|
|
type EditRes struct{}
|
|
type StatusReq struct {
|
|
g.Meta `path:"/customerService/status" method:"post" tags:"客服管理" summary:"客服启停"`
|
|
sysin.CustomerServiceStatusInp
|
|
}
|
|
type StatusRes struct{}
|
|
type DeleteReq struct {
|
|
g.Meta `path:"/customerService/delete" method:"post" tags:"客服管理" summary:"删除客服"`
|
|
sysin.CustomerServiceDeleteInp
|
|
}
|
|
type DeleteRes struct{}
|