art.go 1.7 KB

1234567891011121314151617181920212223242526272829
  1. package datamodel
  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. ArtSource string `json:"artSource" xorm:"'art_source' varchar(127) comment('Content') "`
  11. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  12. EditorId int64 `json:"editorId" xorm:"'editor_id' bigint comment('EditorId') "`
  13. IssuedAt time.Time `json:"issuedAt" xorm:"'issued_at' datetime comment('Datetime') "`
  14. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('是否可修改') "`
  15. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  16. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  17. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  18. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  19. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  20. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  21. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  22. }
  23. func (t *Art) TableName() string {
  24. return "art"
  25. }