Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
Category 分类管理
func (*Category) Create ¶
Create 创建数据 @Tags 分类 @Security Bearer @Summary 添加分类数据 @Param body body model.Category true "分类数据" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/syscategory [post]
func (*Category) Delete ¶
Delete 删除数据 @Tags 分类 @Security Bearer @Summary 删除分类数据 @Param id path string true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/syscategory/{id} [delete]
func (*Category) Get ¶
Get 查询指定数据 @Tags 分类 @Security Bearer @Summary 通过ID获取分类数据 @Param id path int true "分类ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/syscategory/{id} [get]
func (*Category) Query ¶
Query 查询数据 @Tags 分类 @Security Bearer @Summary 分类列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param status query string false "status" @Param name query string false "name" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/syscategoryList [get]
type Content ¶
Content 分类管理
func (*Content) Create ¶
Create 创建数据 @Tags 内容管理 @Security Bearer @Summary 添加内容数据 @Param body body model.Content true "内容数据" @Success 200 string string "{code: 200, msg: 添加成功}" @Failure 200 string string "{code: -1, msg: 添加失败}" @Router /api/v1/syscontent [post]
func (*Content) Delete ¶
Delete 删除数据 @Tags 内容管理 @Security Bearer @Summary 删除内容数据 @Param id path string true "id" @Success 200 string string "{code: 200, msg: 删除成功}" @Failure 200 string string "{code: -1, msg: 删除失败}" @Router /api/v1/syscontent/{id} [delete]
func (*Content) Get ¶
Get 查询指定数据 @Tags 内容管理 @Security Bearer @Summary 通过ID获取内容数据 @Param id path int true "内容ID" @Success 200 string string "{code: 200, data: {}}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/syscontent/{id} [get]
func (*Content) Query ¶
Query 查询数据 @Tags 内容管理 @Security Bearer @Summary 分类列表 @Param pageIndex query int true "分页索引" default(1) @Param pageSize query int true "分页大小" default(10) @Param status query string false "status" @Param name query string false "name" @Success 200 string string "{code: 200, data: [...]}" "查询结果" @Failure 200 string string "{code:-1, msg:错误信息}" @Router /api/v1/syscontentList [get]