art.go 1.6 KB

12345678910111213141516171819202122232425262728
  1. package datamodels
  2. import "time"
  3. type Art struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint pk comment('OC ID') "`
  5. ArtId int64 `json:"artId" xorm:"'art_id' bigint pk comment('ArtId') "`
  6. ArtCatId int64 `json:"artCatId" xorm:"'art_cat_id' bigint pk comment('ArtCatId') "`
  7. ArtTitle string `json:"artTitle" xorm:"'art_title' varchar(127) comment('ArtTitle') "`
  8. ArtContent string `json:"artContent" xorm:"'art_content' varchar(127) comment('Content') "`
  9. ArtAuthor string `json:"artAuthor" xorm:"'art_author' varchar(127) comment('Content') "`
  10. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  11. EditorId int64 `json:"editorId" xorm:"'editor_id' bigint comment('EditorId') "`
  12. IssuedAt time.Time `json:"issuedAt" xorm:"'issued_at' datetime comment('Datetime') "`
  13. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('是否可修改') "`
  14. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  15. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  16. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  17. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  18. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  19. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  20. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  21. }
  22. func (t *Art) TableName() string {
  23. return "art"
  24. }