package com.bonus.sgzb.base.controller;


import com.bonus.sgzb.base.service.IMaPropInfoService;
import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.log.annotation.Log;
import com.bonus.sgzb.common.log.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * 资产属性配置ma_prop_setController
 * 
 * @author bonus
 * @date 2023-12-16
 */
@RestController
@RequestMapping("/base/maPropSet")
public class MaPropSetController extends BaseController
{
    @Autowired
    private IMaPropInfoService maPropInfoService;



    /**
     * 删除资产属性配置ma_prop_set
     */
    @Log(title = "资产属性配置ma_prop_set", businessType = BusinessType.DELETE)
    @DeleteMapping("/{typeIds}")
    public AjaxResult remove(@PathVariable String typeIds)
    {
        AjaxResult b = null;
        try{
            b = toAjax(maPropInfoService.deleteMaPropSetByPropIds(typeIds));
        }catch (Exception e){
            logger.error(e.toString(),e);
        }
        return b;
    }
}
