package dto_admin import "errors" type AdjustmentNobilityRequest struct { UserId string ExpValue int32 OutId string BizType string } func (param AdjustmentNobilityRequest) Check() (err error) { if len(param.UserId) == 0 { err = errors.New("UserId不能为空") return } if param.ExpValue == 0 { err = errors.New("ExpValue不能为空") return } if len(param.OutId) == 0 { err = errors.New("OutId不能为空") return } if len(param.BizType) == 0 { err = errors.New("BizType不能为空") return } return } type AddInnerUserRequest struct { UserId string } func (param AddInnerUserRequest) Check() (err error) { if len(param.UserId) == 0 { err = errors.New("UserId不能为空") return } return err }