Add lawyer information reporting interface and update routes
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// Lawyer 对应 lawyer 库中的 lawyer 表(无需自动迁移)。
|
||||
type Lawyer struct {
|
||||
ID uint `gorm:"column:id;primaryKey;autoIncrement"`
|
||||
Phone string `gorm:"column:phone"`
|
||||
Province string `gorm:"column:province"`
|
||||
City string `gorm:"column:city"`
|
||||
LawFirm string `gorm:"column:law_firm"`
|
||||
URL string `gorm:"column:url"`
|
||||
CreateTime int `gorm:"column:create_time"`
|
||||
Domain string `gorm:"column:domain"`
|
||||
Name string `gorm:"column:name"`
|
||||
Params string `gorm:"column:params"`
|
||||
}
|
||||
|
||||
func (Lawyer) TableName() string {
|
||||
return "lawyer"
|
||||
}
|
||||
Reference in New Issue
Block a user