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