api_req_info.go 1.2 KB

1234567891011121314151617181920
  1. package viewmodels
  2. import "time"
  3. type ApiReqInfo struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint comment('OcId') "`
  5. AccountId int64 `json:"accountId" xorm:"'account_id' bigint comment('AccountId') "`
  6. AppId int64 `json:"appId" xorm:"'app_id' bigint comment('AppId') "`
  7. AppTitle string `json:"appTitle" xorm:"'app_title' varchar(127) comment('AppTitle') "`
  8. ApiId int64 `json:"apiId" xorm:"'api_id' bigint comment('ApiId') "`
  9. ApiTitle string `json:"apiTitle" xorm:"'api_title' varchar(127) comment('ApiTitle') "`
  10. ReqId int64 `json:"reqId" xorm:"'req_id' bigint pk comment('ReqId') "`
  11. ReqParams string `json:"reqParams" xorm:"'req_params' varchar(127) comment('Param') "`
  12. ReqData string `json:"reqData" xorm:"'req_data' varchar(2047) comment('Status') "`
  13. ReqTime time.Time `json:"reqTime" xorm:"'req_time' datetime comment('ReqTime') "`
  14. }
  15. func (t *ApiReqInfo) TableName() string {
  16. return "ps_api_req"
  17. }