26 lines
487 B
Go
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
|
|
}
|