19 lines
282 B
Go
19 lines
282 B
Go
package inner
|
|
|
|
import "errors"
|
|
|
|
type GetRoomWeeklyTopListRequest struct {
|
|
Week string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetRoomWeeklyTopListRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.Week) == 0 {
|
|
err = errors.New("Week不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|