You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
391 B
19 lines
391 B
6 months ago
|
package model
|
||
|
|
||
|
type UsStates struct {
|
||
|
ID int `json:"id"`
|
||
|
StateCode string `json:"stateCode"`
|
||
|
StateName string `json:"stateName"`
|
||
|
}
|
||
|
|
||
|
type UsSelect struct {
|
||
|
ID int `json:"id"`
|
||
|
StateCode string `json:"stateCode"`
|
||
|
StateName string `json:"stateName"`
|
||
|
Child []UsCitys `gorm:"-" json:"children"`
|
||
|
}
|
||
|
|
||
|
func (UsStates) TableName() string {
|
||
|
return "us_states"
|
||
|
}
|