zhangzengfei
2023-09-04 e8e536d1cb52d2126c8c7ce2ba1c7a76f7208678
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package models
 
import "basic.com/valib/logc.git"
 
type OperationLog logc.OperationLog
 
type OperationQuery struct {
    TimeStart      string `json:"timeStart" example:"2020-01-02 15:04:05"`                  //开始时间,不传为结束时间前一个小时
    TimeEnd        string `json:"timeEnd" example:"2020-01-02 16:00:00"`                    //结束时间,不传为当前时间
    Module         string `json:"module" example:"pollcontrol"`                             //模块名字
    Function       string `json:"function" example:"addCamera"`                             //功能
    Result         string `json:"result" example:"2"`                                       //操作结果
    FuzzySearch    string `json:"fuzzySearch" example:"hasfkll-12348nzsf2-1248njzlsud"`     // 模糊查询
    Page           int    `json:"page" example:"2"`                                         //操作结果
    PageSize       int    `json:"pageSize" example:"hasfkll-12348nzsf2-1248njzlsud"`        // 模糊查询
}
 
func (OperationLog) TableName() string {
    return "t_op_log"
}