// 自动生成模板DcypGoods
package model

// 如果含有time.Time 请自行import time包
type Region struct {
	RegionId   int64  `json:"regionId" form:"regionId" gorm:"column:region_id;comment:;type:bigint;size:19;"`
	RegionName string `json:"regionName" form:"regionName" gorm:"column:region_name;comment:;type:varchar(60);"`
	ParentId   int64  `json:"parentId" form:"parentId" gorm:"column:parent_id;comment:;type:bigint;size:19;"`
	SortOrder  int64  `json:"sortOrder" form:"sortOrder" gorm:"column:sort_order;comment:;type:bigint;size:19;"`
}

func (Region) TableName() string {
	return "region"
}

type RegionList struct {
	RegionId   int64         `json:"regionId"`
	RegionName string        `json:"regionName"`
	ParentId   int64         `json:"parentId"`
	Children   []*RegionList `json:"children"`
}
