package request // LoginRequest 登录请求 type LoginRequest struct { Username string `form:"username" binding:"required"` Password string `form:"password" binding:"required"` AboutID int64 `form:"about_id"` // 租户ID(从ERP关联) Type int64 `form:"type"` // 类型 1web 2pda Code string `form:"code"` // 机械码 } // GetEmployeeListRequest 获取员工列表请求 type GetEmployeeListRequest struct { Page int `form:"page"` PageSize int `form:"page_size"` Fid int64 `form:"fid"` Status string `form:"status"` Keyword string `form:"keyword"` } // AddEmployeeRequest 添加员工请求 type AddEmployeeRequest struct { Name string `form:"name" binding:"required"` UserName string `form:"username"` AboutId int64 `form:"about_id"` Fid int64 `form:"fid"` Phone string `form:"phone"` Password string `form:"password" binding:"required,min=6"` From string `form:"from"` ExpireTime int64 `form:"expire_time"` } // UpdatePasswordEmployeeRequest 修改员工密码请求 type UpdatePasswordEmployeeRequest struct { Id int64 `form:"id" binding:"required"` AboutId int64 `form:"about_id"` Password string `form:"password" binding:"required,min=6"` } // UpdateExpireTimeEmployeeRequest 修改员工过期时间请求 type UpdateExpireTimeEmployeeRequest struct { Id int64 `form:"id" binding:"required"` AboutId int64 `form:"about_id"` ExpireTime int64 `form:"expire_time" binding:"required"` } // CheckCodeEmployeeRequest 校验员工机械码 type CheckCodeEmployeeRequest struct { UserName string `form:"username" binding:"required"` } // ClearCodeEmployeeRequest 清除员工机械码请求 type ClearCodeEmployeeRequest struct { UserName string `form:"username" binding:"required"` } // SetEmployeeLevelRequest 设置员工等级 type SetEmployeeLevelRequest struct { EmpId int64 `form:"emp_id" binding:"required"` Level int8 `form:"level" binding:"required,min=1,max=5"` // 等级(1-5) PayTime int64 `form:"pay_time" binding:"required"` OperationType int8 `form:"operation_type" binding:"required,oneof=1 2 3"` // 操作类型(1:开通,2:升级,3:续费) Duration int64 `form:"duration" binding:"required,min=1"` // 时长(月数),按30天/月计算 } // GetUserListRequest 获取用户列表请求 type GetUserListRequest struct { Page int `form:"page"` // 页码 PageSize int `form:"page_size"` // 页大小 Username string `form:"username"` // 用户名 Tel string `form:"tel"` // 手机号 //Keyword string `form:"keyword"` // 关键词 注释将keyword改为 username 和 tel Status string `form:"status"` // 状态 } // GetUserListRequest 获取用户列表请求 /*type GetUserListRequest struct { Page int `form:"page"` // 页码 PageSize int `form:"page_size"` // 页大小 Username string `form:"username"` // 用户名 Tel string `form:"tel"` // 手机号 Status string `form:"status"` // 状态 }*/ // UpdateEmployeeSplitAccountConfigRequest 根据about_id更新员工分账配置请求 type UpdateEmployeeSplitAccountConfigRequest struct { AboutId int64 `form:"about_id" binding:"required"` SplitAccountConfigId int64 `form:"split_account_config_id" binding:"required"` }