Documentation ¶
Index ¶
- type CreateMomentRequest
- type ListMineRequest
- type ListRecommendRequest
- type MomentDetailRequest
- type MomentHandlers
- func (m *MomentHandlers) Create() gin.HandlerFunc
- func (m *MomentHandlers) Detail() gin.HandlerFunc
- func (m *MomentHandlers) Mine() gin.HandlerFunc
- func (m *MomentHandlers) Recommend() gin.HandlerFunc
- func (m *MomentHandlers) Remove() gin.HandlerFunc
- func (m *MomentHandlers) Search() gin.HandlerFunc
- type RemoveMomentRequest
- type SearchMomentRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMomentRequest ¶
type CreateMomentRequest struct { // 关联媒体ID // // required: false // min: 1 MediaID int `json:"mediaID"` // momeny类型 // // required: false // min: 1 Type int `json:"type"` // moment 内容 // // required: true // min: 0 Context string `json:"context"` // LocationDegree 位置信息 // // required: false // min: 0 LocationDegree string `json:"locationDegree"` // LocationDegree 位置名称 // // required: false // min: 0 LocationText string `json:"locationText"` // MomentID 转发自指定的momentID // // required: false // min: 0 MomentID int `json:"momentID"` }
CreateMomentRequest is request data for creating a moment swagger:model CreateMomentRequest
type ListMineRequest ¶
type ListMineRequest struct {
*basichandlers.PaginationRequest
}
ListMineRequest model swagger:model ListMineRequest
type ListRecommendRequest ¶
type ListRecommendRequest struct {
*basichandlers.PaginationRequest
}
ListRecommendRequest model swagger:model ListRecommendRequest
type MomentDetailRequest ¶
type MomentDetailRequest struct { // 动态ID // // required: false // min: 1 MomentID int `json:"momentID"` // // *basichandlers.PaginationRequest }
MomentDetailRequest model swagger:model MomentDetailRequest
type MomentHandlers ¶
type MomentHandlers struct {
*basichandlers.Basic
}
MomentHandlers defined for moment apis
func (*MomentHandlers) Create ¶
func (m *MomentHandlers) Create() gin.HandlerFunc
Create a moment @Tags 动态 @Description 创建新的动态 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param CreateMomentRequest body momenthandlers.CreateMomentRequest true "创建动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/create [post]
func (*MomentHandlers) Detail ¶
func (m *MomentHandlers) Detail() gin.HandlerFunc
Detail of moment @Tags 动态 @Description 动态详情 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param MomentDetailRequest body momenthandlers.MomentDetailRequest true "查找动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/detail [post]
func (*MomentHandlers) Mine ¶
func (m *MomentHandlers) Mine() gin.HandlerFunc
Mine defined for list my moments @Tags 动态 @Description 我发布的额动态 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param PaginationRequest body basichandlers.PaginationRequest true "创建动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/mine [post]
func (*MomentHandlers) Recommend ¶
func (m *MomentHandlers) Recommend() gin.HandlerFunc
Recommend defined for list recommend moments @Tags 动态 @Description 为我推荐的动态 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param ListRecommendRequest body momenthandlers.ListRecommendRequest true "推荐的动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/recommend [post]
func (*MomentHandlers) Remove ¶
func (m *MomentHandlers) Remove() gin.HandlerFunc
Remove moment @Tags 动态 @Description 删除动态 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param RemoveMomentRequest body momenthandlers.RemoveMomentRequest true "删除动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/remove [post]
func (*MomentHandlers) Search ¶
func (m *MomentHandlers) Search() gin.HandlerFunc
Search moments @Tags 动态 @Description 查找动态 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param SearchMomentRequest body momenthandlers.SearchMomentRequest true "查找动态" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /moments/search [post]
type RemoveMomentRequest ¶
type RemoveMomentRequest struct { // 动态ID // // required: false // min: 1 MomentID uint `json:"momentID"` }
RemoveMomentRequest model swagger:model RemoveMomentRequest
type SearchMomentRequest ¶
type SearchMomentRequest struct { // 查询的关键字 // // required: true // min: 2 Keyword string `json:"keyword"` // 分页 *basichandlers.PaginationRequest }
SearchMomentRequest model swagger:model SearchMomentRequest