26 lines
406 B
Go
26 lines
406 B
Go
package request
|
|
|
|
import "errors"
|
|
|
|
type UploadUserPhotoRequest struct {
|
|
BaseRequest
|
|
PhotoKey string
|
|
PhotoIndex string
|
|
}
|
|
|
|
// 签名验证
|
|
func (request *UploadUserPhotoRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.PhotoKey) == 0 {
|
|
err = errors.New("PhotoKey不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|