LabelDictController.java 936 Bytes
package com.meishu.controller;


import com.meishu.common.ResponseData;
import com.meishu.common.ResponseVO;
import com.meishu.service.LabelDictService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;

/**
 * <p>
 * 标签表 前端控制器
 * </p>
 *
 * @author Tuyp
 * @since 2023-07-11
 */
@RestController
@Api(tags = "标签表")
@RequestMapping("/labelDict")
public class LabelDictController {


    @Autowired
    private LabelDictService labelDictService;

    @PostMapping("labels")
    @ApiOperation("查询所有标签")
    public ResponseVO labels(){
        return ResponseData.generateCreatedResponse(0,labelDictService.labels());
    }

}