ServiceDictController.java 1003 Bytes
package com.subsidy.controller;


import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.service.ServiceDictService;
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 2024-01-11
 */
@RestController
@Api(tags = "业务管理字典表")
@RequestMapping("/serviceDict")
public class ServiceDictController {

    @Autowired
    private ServiceDictService serviceDictService;

    @PostMapping("getAllServices")
    @ApiOperation("获取所有的服务")
    public ResponseVO getAllServices(){
        return ResponseData.generateCreatedResponse(0,serviceDictService.getAllServices());
    }


}