31 lines
850 B
Go
31 lines
850 B
Go
package srv_contactus
|
|
|
|
import (
|
|
"videoweb/pub/models/contactusmod"
|
|
"videoweb/pub/pubdef"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type GetContactusListReq struct {
|
|
pubdef.Page
|
|
Ip *string `form:"ip" json:"ip"` // ip
|
|
Name *string `form:"name" json:"name"` // 姓名
|
|
Email *string `form:"email" json:"email"` // 邮箱
|
|
CategoryName *string `form:"categoryName" json:"categoryName"` // 分类
|
|
}
|
|
|
|
type GetContactusListResp struct {
|
|
Total int64 `json:"total"`
|
|
List contactusmod.ContactUsModelList `json:"list"`
|
|
}
|
|
|
|
type DelOneContactusReq struct {
|
|
Id primitive.ObjectID `form:"id" json:"id"`
|
|
}
|
|
|
|
type UpdateContactusReq struct {
|
|
Id primitive.ObjectID `form:"id" json:"id"`
|
|
Status int64 `form:"status" json:"status"`
|
|
}
|