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