Files
servicebase/pkg/dto/request/UploadUserPhotoRequest.go
2025-11-19 14:24:13 +08:00

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
}