recommender/internal/handler/http/request/applications.go

27 lines
743 B
Go
Raw Normal View History

2024-11-07 18:25:15 +00:00
package request
import "leafdev.top/Ecosystem/recommender/internal/schema"
type ApplicationId struct {
ApplicationId schema.EntityId `json:"application_id" uri:"application_id"`
}
type ApplicationCreateRequest struct {
Name string `json:"name"`
}
2024-11-09 16:11:00 +00:00
type UserLikePost struct {
PostId schema.EntityId `json:"post_id" uri:"post_id"`
ExternalUserId string `json:"external_user_id"`
}
type UserDislikePost struct {
PostId schema.EntityId `json:"post_id" uri:"post_id"`
ExternalUserId string `json:"external_user_id"`
}
2024-11-09 19:49:53 +00:00
type UserSuggestsRequest struct {
ExternalUserId string `json:"external_user_id" binding:"required"`
CategoryId schema.EntityId `json:"category_id" binding:"required"`
}