奇淼(piexlmax
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 64 deletions
-
2server/api/v1/sys_api.go
-
13server/api/v1/sys_operation_record.go
-
7server/model/request/common.go
-
18server/model/request/sys_operation_record.go
-
22server/resource/template/server/api.go.tpl
-
9server/resource/template/server/model.go.tpl
-
10server/resource/template/server/request.go.tpl
-
2server/resource/template/server/service.go.tpl
-
1server/resource/template/web/workflowForm.vue.tpl
@ -1,22 +1,8 @@ |
|||||
package request |
package request |
||||
|
|
||||
import "gin-vue-admin/global" |
|
||||
|
|
||||
type SysOperationRecordCreate struct { |
|
||||
global.GVA_MODEL |
|
||||
Ip string `json:"ip" form:"ip" gorm:"column:ip;comment:请求ip"` |
|
||||
Method string `json:"method" form:"method" gorm:"column:method;comment:请求方法"` |
|
||||
Path string `json:"path" form:"path" gorm:"column:path;comment:请求路径"` |
|
||||
Status int `json:"status" form:"status" gorm:"column:status;comment:请求状态"` |
|
||||
Latency int `json:"latency" form:"latency" gorm:"column:latency;comment:延迟"` |
|
||||
Agent string `json:"agent" form:"agent" gorm:"column:agent;comment:代理"` |
|
||||
ErrorMessage string `json:"error_message" form:"error_message" gorm:"column:error_message;comment:错误信息"` |
|
||||
Body string `json:"body" form:"body" gorm:"type:longtext;column:body;comment:请求Body"` |
|
||||
Resp string `json:"resp" form:"resp" gorm:"type:longtext;column:resp;comment:响应Body"` |
|
||||
UserID int `json:"user_id" form:"user_id" gorm:"column:user_id;comment:用户id"` |
|
||||
} |
|
||||
|
import "gin-vue-admin/model" |
||||
|
|
||||
type SysOperationRecordSearch struct { |
type SysOperationRecordSearch struct { |
||||
SysOperationRecordCreate |
|
||||
|
model.SysOperationRecord |
||||
PageInfo |
PageInfo |
||||
} |
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue