33 lines
869 B
Go
33 lines
869 B
Go
package operatorlgmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
// OperatorListReq 操作日志查询
|
|
type OperatorListReq struct {
|
|
Manager string `form:"manager" json:"manager"`
|
|
Position string `form:"position" json:"position"`
|
|
Content string `form:"content" json:"content" binding:"omitempty,min=2,max=100"`
|
|
URI string `form:"uri" json:"uri"`
|
|
Start time.Time `form:"start" json:"start"`
|
|
End time.Time `form:"end" json:"end"`
|
|
commod.Page
|
|
}
|
|
|
|
// OperatorListResp 操作日志查询应答
|
|
type OperatorListResp struct {
|
|
Infos []*WebOperatorLog `json:"infos"`
|
|
Total int64 `json:"total"`
|
|
}
|
|
|
|
// OperatorModifyReq 操作日志修改
|
|
type OperatorModifyReq struct {
|
|
ID primitive.ObjectID `json:"id"`
|
|
Remarks string `json:"remarks"`
|
|
}
|