category.go 394 B

1234567891011121314151617
  1. package model
  2. import (
  3. "time"
  4. "go.mongodb.org/mongo-driver/bson/primitive"
  5. )
  6. // 分类
  7. type Category struct {
  8. Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
  9. Name string `bson:"name,omitempty" json:"name"`
  10. //字母缩写
  11. LetterName string `bson:"letterName,omitempty" json:"letterName"`
  12. CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
  13. }