category.go 451 B

12345678910111213
  1. package request
  2. import "time"
  3. // Category 商品分类表
  4. type Category struct {
  5. ID int64 `gorm:"primary_key;not_null;auto_increment;" json:"id"`
  6. Name string `json:"name"` // 分类名称
  7. Description string `json:"description"` // 描述
  8. ParentCategoryID int64 `json:"parent_category_id"`
  9. CreatedAt time.Time `json:"created_at"`
  10. UpdatedAt *time.Time `json:"updated_at"`
  11. }