api_log.go 1.1 KB

12345678910111213141516171819
  1. package datamodel
  2. import "time"
  3. type ApiLog struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('OcId') "`
  5. AccountId int64 `json:"accountId" xorm:"'account_id' bigint pk comment('AccountId') "`
  6. AppId int64 `json:"appId" xorm:"'app_id' bigint pk comment('AppId') "`
  7. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
  8. ReqId int64 `json:"reqId" xorm:"'req_id' bigint pk comment('ReqId') "`
  9. ReqCode string `json:"reqCode" xorm:"'req_code' varchar(127) comment('编码') "`
  10. ReqParams string `json:"reqParams" xorm:"'req_params' varchar(127) comment('Param') "`
  11. ReqData string `json:"reqData" xorm:"'req_data' varchar(2047) comment('Status') "`
  12. ReqTime time.Time `json:"reqTime" xorm:"'req_time' datetime comment('ReqTime') "`
  13. }
  14. func (t *ApiLog) TableName() string {
  15. return "api_log"
  16. }