CompanyDictController.java 1.71 KB
package com.subsidy.controller;


import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.common.interceptor.LoginRequired;
import com.subsidy.dto.company.GetCompanyMembersDTO;
import com.subsidy.dto.company.OperatorsDTO;
import com.subsidy.service.CompanyDictService;
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.RequestBody;
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("/companyDict")
public class CompanyDictController {


    @Autowired
    private CompanyDictService companyDictService;

    @PostMapping("/administers")
    @ApiOperation("查询所有企业  {userId id companyName fieldId 行业id  superviseName 监管第三方名称 pageNum  pageSize }")
    @LoginRequired
    public ResponseVO operators(@RequestBody OperatorsDTO operatorsDTO){
        return ResponseData.generateCreatedResponse(0,companyDictService.operators(operatorsDTO));
    }

    @PostMapping("getCompanyMembers")
    @ApiOperation("获取公司里的成员  pageNum  pageSize   companyId 公司id   userName 成员名称 memberStatus")
    @LoginRequired
    public ResponseVO getCompanyMembers(@RequestBody GetCompanyMembersDTO getCompanyMembersDTO){
        return ResponseData.generateCreatedResponse(0,companyDictService.getCompanyMembers(getCompanyMembersDTO));
    }


}