22 lines
696 B
Go
22 lines
696 B
Go
package dto
|
|
|
|
// LikeCreateRequest 点赞/取消点赞
|
|
type LikeCreateRequest struct {
|
|
TargetUUID string `json:"target_uuid" binding:"required"` // 穿搭UUID
|
|
Action int8 `json:"action" binding:"required,oneof=1 2"` // 1=点赞 2=取消
|
|
}
|
|
|
|
// LikeResponse 点赞/取消点赞响应
|
|
type LikeResponse struct{}
|
|
|
|
// LikeGetByTargetIDRequest 获取穿搭的点赞数
|
|
type LikeGetByTargetIDRequest struct {
|
|
TargetUUID string `json:"target_uuid" binding:"required"` // 穿搭UUID
|
|
}
|
|
|
|
// LikeGetByTargetIDResponse 获取穿搭的点赞数
|
|
type LikeGetByTargetIDResponse struct {
|
|
UserIsLiked bool `json:"is_liked"` // 是否已点赞
|
|
LikeCount int64 `json:"like_count"` // 点赞数
|
|
}
|