优化mongo,封装count逻辑,处理objectId
This commit is contained in:
@@ -48,12 +48,3 @@ type ListLogsResp struct {
|
||||
Logs []OperationLogInfo `json:"logs" dc:"日志列表"`
|
||||
Total int64 `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
// ========== 记录操作日志DTO ==========
|
||||
|
||||
// RecordCreateLogReq 记录创建操作日志请求
|
||||
type RecordCreateLogReq struct {
|
||||
ServiceName string `json:"service_name" v:"required" dc:"服务名"`
|
||||
Collection string `json:"collection" v:"required" dc:"数据所在集合名称"`
|
||||
Data []interface{} `json:"data" dc:"当前数据"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user