25 lines
429 B
Go
25 lines
429 B
Go
package request
|
|
|
|
import "errors"
|
|
|
|
type UpdateUserPhotoIndexRequest struct {
|
|
BaseRequest
|
|
PhotoIds string // 排序后的id 以逗号分开
|
|
}
|
|
|
|
// 签名验证
|
|
func (request *UpdateUserPhotoIndexRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.PhotoIds) == 0 {
|
|
err = errors.New("PhotoIds不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|