2023-11-15 11:40:46 +08:00

34 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package requests
type UserPatientRequest struct {
GetUserPatientPage // 获取患者列表-分页
PutUserDoctorStatus // 修改患者状态
UserPatientExportList // 患者列表-导出
}
// GetUserPatientPage 获取患者列表-分页
type GetUserPatientPage struct {
Page int `json:"page" form:"page" label:"页码"`
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
UserName string `json:"user_name" form:"user_name" label:"用户名称"`
Status *int `json:"status" form:"status" label:"状态"` // 0:禁用 1:正常 2:删除)
Mobile string `json:"mobile" form:"mobile" label:"手机号"`
CreatedAt string `json:"created_at" form:"created_at" label:"注册时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
}
// PutUserDoctorStatus 修改患者状态
type PutUserDoctorStatus struct {
Status int `json:"status" form:"status" validate:"oneof=0 1 2" label:"状态"` // 0:禁用 1:正常 2:删除)
DisableReason string `json:"disable_reason" form:"disable_reason" label:"禁用理由"`
}
// UserPatientExportList 患者列表-导出
type UserPatientExportList struct {
Type int `json:"type" form:"type" label:"类型" validate:"required,oneof=1 2 3"` // 1:当前搜索数据 2:当前选择数据 3:全部数据
Id string `json:"id" form:"id" label:"id"` // 选择数据的id逗号分隔当type为2时必填
UserName string `json:"user_name" form:"user_name" label:"用户名称"`
Status *int `json:"status" form:"status" label:"状态"` // 0:禁用 1:正常 2:删除)
Mobile string `json:"mobile" form:"mobile" label:"手机号"`
CreatedAt string `json:"created_at" form:"created_at" label:"注册时间"` // 时间区间数组形式下标0为开始时间下标1为结束时间
}