33 lines
2.5 KiB
Go
33 lines
2.5 KiB
Go
package requests
|
||
|
||
type DoctorConfigFollowPackageRequest struct {
|
||
GetDoctorFollowPage // 获取医生健康包列表-分页
|
||
PutDoctorFollow // 修改医生健康包配置
|
||
AddDoctorFollow // 新增医生健康包配置
|
||
}
|
||
|
||
// GetDoctorFollowPage 获取医生健康包列表-分页
|
||
type GetDoctorFollowPage struct {
|
||
Page int `json:"page" form:"page" label:"页码"`
|
||
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
|
||
Mobile string `json:"mobile" form:"mobile" label:"手机号"`
|
||
DoctorName string `json:"doctor_name" form:"doctor_name" label:"医生姓名"`
|
||
}
|
||
|
||
// PutDoctorFollow 修改医生健康包配置
|
||
type PutDoctorFollow struct {
|
||
MonthlyFrequency *int `json:"monthly_frequency" form:"monthly_frequency" label:"每月次数" validate:"required"` // (0表示不限次)
|
||
ServiceRounds *int `json:"service_rounds" form:"service_rounds" label:"服务回合数" validate:"required"` // (0表示不限次)
|
||
IsEnable *int `json:"is_enable" form:"is_enable" validate:"oneof=0 1" label:"是否启用" validate:"required"` // 0:否 1:是
|
||
DoctorConfigFollowPackageItem []*DoctorConfigFollowPackageItem `json:"doctor_config_follow_package_item" form:"doctor_config_follow_package_item" label:"医生健康包明细" validate:"required"` //
|
||
}
|
||
|
||
// AddDoctorFollow 新增医生健康包配置
|
||
type AddDoctorFollow struct {
|
||
DoctorId string `json:"doctor_id" form:"doctor_id" label:"医生id" validate:"required"`
|
||
MonthlyFrequency *int `json:"monthly_frequency" form:"monthly_frequency" label:"每月次数" validate:"required"` // (0表示不限次)
|
||
ServiceRounds *int `json:"service_rounds" form:"service_rounds" label:"服务回合数" validate:"required"` // (0表示不限次)
|
||
IsEnable *int `json:"is_enable" form:"is_enable" validate:"oneof=0 1" label:"是否启用" validate:"required"` // 0:否 1:是
|
||
DoctorConfigFollowPackageItem []*DoctorConfigFollowPackageItem `json:"doctor_config_follow_package_item" form:"doctor_config_follow_package_item" label:"医生健康包明细" validate:"required"` //
|
||
}
|