/*
 * Copyright (c) 京北方信息技术股份有限公司 Corporation 2021 . All rights reserved.
 *
 */
package net.northking.cctp.platform.pub;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.northking.cctp.platform.api.dict.service.CltDictCatalogApiService;
import net.northking.cctp.platform.db.entity.CltDictCatalog;
import net.northking.cctp.platform.db.entity.CltDictItem;
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 java.util.List;

@Api(tags = "角色-外部使用")
@RequestMapping("/pub")
@RestController
public class PubRoleCtrl {

    @Autowired
    private CltDictCatalogApiService cltDictCatalogApiService;

    @ApiOperation(value = "查询字典目录下的条目")
    @PostMapping(value = "/select/catalogItems")
    public List<CltDictItem> queryCatalogItem(@RequestBody CltDictCatalog cltDictCatalog){
        return this.cltDictCatalogApiService.queryItem(cltDictCatalog);
    }


}


