| 12345678910111213141516171819 |
- package datamodel
- import "time"
- type ApiLog struct {
- OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('OcId') "`
- AccountId int64 `json:"accountId" xorm:"'account_id' bigint pk comment('AccountId') "`
- AppId int64 `json:"appId" xorm:"'app_id' bigint pk comment('AppId') "`
- ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
- ReqId int64 `json:"reqId" xorm:"'req_id' bigint pk comment('ReqId') "`
- ReqCode string `json:"reqCode" xorm:"'req_code' varchar(127) comment('编码') "`
- ReqParams string `json:"reqParams" xorm:"'req_params' varchar(127) comment('Param') "`
- ReqData string `json:"reqData" xorm:"'req_data' varchar(2047) comment('Status') "`
- ReqTime time.Time `json:"reqTime" xorm:"'req_time' datetime comment('ReqTime') "`
- }
- func (t *ApiLog) TableName() string {
- return "api_log"
- }
|