package com.ruoyi.web.controller.api.csMember;

import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.ServiceResponseEnum;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.sign.Base64;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.ruoyi.cs.service.ICsClassService;
import com.ruoyi.cs.service.ICsCompanyClassService;
import com.ruoyi.cs.service.ICsProjectClassService;
import io.swagger.annotations.Api;
import org.springframework.util.FastByteArrayOutputStream;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * @Author: cc
 * @Date: 2024/4/26
 * @Description:类型数据
 */
@Api("用户端PC/类型数据")
@RestController
@RequestMapping("/api/cs/csClass")
public class ApiCsClassController {
    @Resource
    private ICsClassService csClassService;

    /**
     * 获取类型列表by标记
     */
    @GetMapping("/getClassListByMark")
    public AjaxResult getClassListByMark(String classMark)
    {
       return AjaxResult.success(csClassService.selectCsClassListByClassMark(classMark));
    }
}
