package request import "errors" type GetDispatchOrderCenterDataListRequest struct { BaseRequest LastCreateTime string PageNo string PageSize string Status string // 接单状态 taked=已接单 预留 } // 参数合法性检验 func (request *GetDispatchOrderCenterDataListRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } return } type GetDispatchOrderCenterDataHistoryListRequest struct { BaseRequest LastCreateTime string PageNo string PageSize string //DispatchStatus string // 派单状态 dispatching-派单中 success-派单完成 //TakeStatus string // 接单状态 take=已接单 notTake 未接单 预留 } // 参数合法性检验 func (request *GetDispatchOrderCenterDataHistoryListRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } return } type GetActiveOrderListRequest struct { BaseRequest ChatroomId string } // 参数合法性检验 func (request *GetActiveOrderListRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } if len(request.ChatroomId) == 0 { err = errors.New("ChartoomId不能为空") return } return }