package com.xxfc.platform.vehicle.rest.admin;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONUtil;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.universal.constant.DictionaryKey;
import com.xxfc.platform.universal.entity.Dictionary;
import com.xxfc.platform.universal.feign.ThirdFeign;
import com.xxfc.platform.vehicle.biz.VehicleCategoryBiz;
import com.xxfc.platform.vehicle.entity.VehicleCategory;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

import static com.xxfc.platform.universal.constant.DictionaryKey.APP_ORDER;
import static com.xxfc.platform.universal.constant.DictionaryKey.VEHICLE;

@RestController
@RequestMapping("backstage/vehicleCategory")
public class BgVehicleCategoryController extends BaseController<VehicleCategoryBiz, VehicleCategory> {


    @ApiOperation("添加")
    @RequestMapping(value = "addCategory",method = RequestMethod.POST)
    @ResponseBody
    public ObjectRestResponse<VehicleCategory> addCategory(@RequestBody VehicleCategory entity) {
        baseBiz.insertSelective(entity);
        return new ObjectRestResponse<VehicleCategory>();
    }
}