upper.go 482 B

1234567891011121314151617181920
  1. package upper
  2. // Upper reprensents the uppers
  3. type Upper struct {
  4. ID int
  5. MID int64
  6. Toinit int
  7. Submit int // 1=need report
  8. OriName string // original name
  9. CMSName string // cms intervened name
  10. OriFace string // original face
  11. CMSFace string // cms intervened face
  12. Valid int // auth info: 1=online,0=hidden
  13. Deleted int
  14. }
  15. // CanShow tells whether the upper can be displayed or not
  16. func (u *Upper) CanShow() bool {
  17. return u.Valid == 1 && u.Deleted == 0
  18. }