cluster.go 377 B

123456789101112131415
  1. package dao
  2. import "server/global"
  3. // Cluster 群组
  4. type Cluster struct {
  5. global.GVA_MODEL
  6. AreaID uint `json:"areaId" gorm:"column:area_id;comment:所属分区ID"`
  7. ClusterNo string `json:"clusterNo" gorm:"column:cluster_no;comment:组号"`
  8. ClusterName string `json:"cluster_name;comment:群组名称"`
  9. }
  10. func (Cluster) TableName() string {
  11. return "cluster"
  12. }