|
@@ -21,7 +21,7 @@ type ClassifyController struct{}
|
|
|
// @Param CompanyType query string false "产品类型,枚举值:'ficc','权益';不传默认返回全部"
|
|
|
// @Param HideDayWeek query int false "是否隐藏晨周报"
|
|
|
// @Success 200 {object} models.Classify
|
|
|
-// @router /list [get]
|
|
|
+// @router /classify/list [get]
|
|
|
func (this *ClassifyController) ListClassify(c *gin.Context) {
|
|
|
var req eta.ClassifyListReq
|
|
|
err := c.Bind(&req)
|
|
@@ -152,7 +152,7 @@ func (this *ClassifyController) ListClassify(c *gin.Context) {
|
|
|
// @Description 启用/禁用分类
|
|
|
// @Param request body models.ClassifyMoveReq true "type json string"
|
|
|
// @Success 200 新增成功
|
|
|
-// @router /enabled/set [post]
|
|
|
+// @router /classify/enabled/set [post]
|
|
|
func (this *ClassifyController) SetEnabled(c *gin.Context) {
|
|
|
var req eta.ClassifySetEnabledReq
|
|
|
err := c.Bind(&req)
|
|
@@ -204,7 +204,7 @@ func (this *ClassifyController) SetEnabled(c *gin.Context) {
|
|
|
// @Description 修改分类
|
|
|
// @Param request body models.EditClassifyReq true "type json string"
|
|
|
// @Success 200 Ret=200,修改成功
|
|
|
-// @router /edit [post]
|
|
|
+// @router /classify/edit [post]
|
|
|
func (this *ClassifyController) Edit(c *gin.Context) {
|
|
|
var req eta.EditClassifyReq
|
|
|
err := c.Bind(&req)
|