新增修改医生

This commit is contained in:
2023-07-06 14:17:38 +08:00
parent 966039e4b6
commit a38fe237dd
9 changed files with 176 additions and 15 deletions
+17
View File
@@ -0,0 +1,17 @@
package requests
type HospitalRequest struct {
GetHospitalLimit // 获取医院列表-限制条数
}
// GetHospitalLimit 获取医院列表-限制条数
type GetHospitalLimit struct {
HospitalName string `json:"hospital_name" form:"hospital_name" label:"医院名称"`
HospitalLevelName string `json:"hospital_level_name" form:"hospital_level_name" label:"医院等级名称"`
ProvinceId int `json:"province_id" form:"province_id" label:"省份id"`
Province string `json:"province" form:"province" label:"省份"`
CityId int `json:"city_id" form:"city_id" label:"城市id"`
City string `json:"city" form:"city" label:"城市"`
CountyId int `json:"county_id" form:"county_id" label:"区县id"`
County string `json:"county" form:"county" label:"区县"`
}
+4 -4
View File
@@ -2,7 +2,7 @@ package requests
type UserDoctorRequest struct {
GetUserDoctorPage // 获取医生列表-分页
PutPostUserDoctor // 修改医生
PutUserDoctor // 修改医生
}
// GetUserDoctorPage 获取医生列表-分页
@@ -23,11 +23,11 @@ type GetUserDoctorPage struct {
IsEnterpriseDeepCooperation int `json:"is_enterprise_deep_cooperation" form:"is_enterprise_deep_cooperation" label:"是否企业深度合作"` // 0:否 1:是)
}
// PutPostUserDoctor 修改医生
type PutPostUserDoctor struct {
// PutUserDoctor 修改医生
type PutUserDoctor struct {
IsRecommend int `json:"is_recommend" form:"is_recommend" label:"是否首页推荐"` // 0:否 1:是)
Avatar string `json:"avatar" form:"avatar" validate:"required" label:"头像"`
DoctorTitle int `json:"doctor_title" form:"doctor_title" validate:"required oneof=1 2 3 4 5 6" label:"医生职称"` // (1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
DoctorTitle int `json:"doctor_title" form:"doctor_title" validate:"required,oneof=1 2 3 4 5 6" label:"医生职称"` // (1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
DepartmentCustomId string `json:"department_custom_id" form:"department_custom_id" validate:"required" label:"科室"`
DepartmentCustomName string `json:"department_custom_name" form:"department_custom_name" validate:"required" label:"科室名称"` // (如未自己输入,填入标准科室名称)
DepartmentCustomMobile string `json:"department_custom_mobile" form:"department_custom_mobile" label:"科室电话"`