25 lines
849 B
Go
25 lines
849 B
Go
package requests
|
|
|
|
type UserCollectionRequest struct {
|
|
GetUserCollectionPage // 获取用户收藏题目列表-分页
|
|
PutUserCollection // 收藏题目
|
|
PutUserCollectionCancel // 取消收藏题目
|
|
}
|
|
|
|
// GetUserCollectionPage 获取用户收藏列表-分页
|
|
type GetUserCollectionPage struct {
|
|
Page int `json:"page" form:"page" label:"页码"`
|
|
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
|
|
UserId int64 `json:"user_id" form:"user_id" label:"用户id"`
|
|
}
|
|
|
|
// PutUserCollection 收藏题目
|
|
type PutUserCollection struct {
|
|
QuestionId string `json:"question_id" form:"question_id" label:"问题id" validate:"required"`
|
|
}
|
|
|
|
// PutUserCollectionCancel 取消收藏题目
|
|
type PutUserCollectionCancel struct {
|
|
QuestionId string `json:"question_id" form:"question_id" label:"问题id" validate:"required"`
|
|
}
|