Documentation ¶
Index ¶
- type ApiGroup
- type TopicApi
- func (toPicApi *TopicApi) CreateTopic(c *gin.Context)
- func (toPicApi *TopicApi) DeleteTopic(c *gin.Context)
- func (toPicApi *TopicApi) DeleteTopicByIds(c *gin.Context)
- func (toPicApi *TopicApi) FindTopic(c *gin.Context)
- func (toPicApi *TopicApi) GetAppTopicList(c *gin.Context)
- func (toPicApi *TopicApi) GetTopicList(c *gin.Context)
- func (toPicApi *TopicApi) UpdateTopic(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TopicApi ¶
type TopicApi struct { }
func (*TopicApi) CreateTopic ¶
CreateTopic 创建Topic @Tags Topic @Summary 创建Topic @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body topic.Topic true "创建Topic" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /toPic/createTopic [post]
func (*TopicApi) DeleteTopic ¶
DeleteTopic 删除Topic @Tags Topic @Summary 删除Topic @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body topic.Topic true "删除Topic" @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}" @Router /toPic/deleteTopic [delete]
func (*TopicApi) DeleteTopicByIds ¶
DeleteTopicByIds 批量删除Topic @Tags Topic @Summary 批量删除Topic @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body request.IdsReq true "批量删除Topic" @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}" @Router /toPic/deleteTopicByIds [delete]
func (*TopicApi) FindTopic ¶
FindTopic 用id查询Topic @Tags Topic @Summary 用id查询Topic @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query topic.Topic true "用id查询Topic" @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" @Router /toPic/findTopic [get]
func (*TopicApi) GetAppTopicList ¶
GetAppTopicList 获取话题列表 @Tags Topic @Summary 分页获取Topic列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query topicReq.TopicSearch true "获取话题列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /toPic/getTopicList [get]
func (*TopicApi) GetTopicList ¶
GetTopicList 分页获取Topic列表 @Tags Topic @Summary 分页获取Topic列表 @Security ApiKeyAuth @accept application/json @Produce application/json @Param data query topicReq.TopicSearch true "分页获取Topic列表" @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}" @Router /toPic/getTopicList [get]
func (*TopicApi) UpdateTopic ¶
UpdateTopic 更新Topic @Tags Topic @Summary 更新Topic @Security ApiKeyAuth @accept application/json @Produce application/json @Param data body topic.Topic true "更新Topic" @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}" @Router /toPic/updateTopic [put]