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

26 lines
487 B
Go

package inner
import "errors"
type OperationAddDiamondRequest struct {
UserNo string
DiamondAmount string
StaffId string
StaffName string
UserId string
Memo string
RoomProfitId string
RoomSubsidyDailyId string
}
// 参数合法性检验
func (request *OperationAddDiamondRequest) CheckParameter() (err error) {
if len(request.UserId) == 0 {
err = errors.New("UserId不能为空")
return
}
return
}