1234567891011121314151617181920212223 |
- package models
- type Region struct {
- Id int `gorm:"column:id" json:"id"`
- CreatedTime MyTime `gorm:"column:created_time" json:"createdTime"`
- CreatedBy int `gorm:"column:created_by" json:"createdBy"`
- UpdatedTime MyTime `gorm:"column:updated_time" json:"updatedTime"`
- UpdatedBy int `gorm:"column:updated_by" json:"updatedBy"`
- DeletedTime MyTime `gorm:"column:deleted_time" json:"deletedTime"`
- DeletedBy int `gorm:"column:deleted_by" json:"deletedBy"`
- Deleted int `gorm:"column:deleted" json:"deleted"`
- Name string `gorm:"column:name" json:"name"`
- Level int `gorm:"column:level" json:"level"`
- Sort int `gorm:"column:sort" json:"sort"`
- ParentId int `gorm:"column:parent_id" json:"parentId"`
- IsProtected int `gorm:"column:is_protected" json:"isProtected"`
- }
- func (*Region) TableName() string {
- return "region"
- }
|