Files
servicebase/pkg/dto/admin/user.go
2025-11-19 14:24:13 +08:00

45 lines
750 B
Go

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
}