Documentation ¶
Index ¶
- func ClinicNameScope(ClinicName string) func(db *gorm.DB) *gorm.DB
- func CreateClinic(ctx iris.Context)
- func FindUuid(scopes ...func(db *gorm.DB) *gorm.DB) (*user.Response, error)
- func IdScope(id string) func(db *gorm.DB) *gorm.DB
- func Party() module.WebModule
- type OaClinic
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClinicNameScope ¶
- ClinicName 诊所名称
Types ¶
type OaClinic ¶
type OaClinic struct { gorm.Model ClinicUuid string `gorm:"index;type:char(42)" json:"clinic_uuid"` ClinicName string `gorm:"index;type:varchar(30)" json:"clinic_name" validate:"required"` UserUuid string `gorm:"not null;type:char(36)" json:"user_uuid"` Address string `gorm:"not null;type:varchar(255);" json:"address"` Enable string `gorm:"not null;type:tinyint(1);default:1" json:"enable"` Remarks string `gorm:"not null;type:varchar(150)" json:"remarks"` Province uint `gorm:"not null;type:smallint(5)" json:"province"` City uint `gorm:"not null;type:smallint(5)" json:"city"` County uint `gorm:"not null;type:smallint(5)" json:"county"` }
Click to show internal directories.
Click to hide internal directories.