feat(app): update
This commit is contained in:
18
pkg/dto/request/SignWithAppleRequest.go
Normal file
18
pkg/dto/request/SignWithAppleRequest.go
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user