scrm-go

district_models.go 790B

12345678910111213141516171819
  1. package models
  2. type District struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. Name string `gorm:"column:name" json:"name" form:"name"`
  5. Level int64 `gorm:"column:level" json:"level" form:"level"`
  6. Upid int64 `gorm:"column:upid" json:"upid" form:"upid"`
  7. Path string `gorm:"column:path" json:"path" form:"path"`
  8. Namepath string `gorm:"column:namepath" json:"namepath" form:"namepath"`
  9. Initial string `gorm:"column:initial" json:"initial" form:"initial"`
  10. Longitude string `gorm:"column:longitude" json:"longitude" form:"longitude"`
  11. Latitude string `gorm:"column:latitude" json:"latitude" form:"latitude"`
  12. Adcode int64 `gorm:"column:adcode" json:"adcode" form:"adcode"`
  13. }
  14. func (District) TableName() string {
  15. return "sgj_user_district"
  16. }