art_info.go 1.2 KB

123456789101112131415161718192021
  1. package viewmodel
  2. import "time"
  3. type ArtInfo 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. }
  15. func (t *ArtInfo) TableName() string {
  16. return "art"
  17. }