api_trans_unit.go 1.2 KB

12345678910111213141516171819202122
  1. package datamodels
  2. import "time"
  3. type ApiTransUnit struct {
  4. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
  5. AtuId int64 `json:"atuId" xorm:"'atu_id' bigint pk comment('AtuId') "`
  6. ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('ModelId') "`
  7. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('ObjectId') "`
  8. ObjectOamType int64 `json:"objectOamType" xorm:"'object_oam_type' bigint comment('ObjectOamType')"`
  9. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  10. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  11. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  12. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  13. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  14. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  15. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  16. }
  17. func (t *ApiTransUnit) TableName() string {
  18. return "ps_api_trans_unit"
  19. }