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