package com.dk.mdm.controller.sys;

import com.dk.common.model.pojo.PageList;
import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.model.pojo.sys.BarcodeItem;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.query.sys.BarcodeItemQuery;
import com.dk.mdm.model.response.sys.BarcodeItemResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import com.dk.mdm.service.sys.BarcodeItemService;

@Api(tags = "生成条码项目API接口")
@RestController
@RequestMapping("sys/barcode_item")
public class BarcodeItemController{

    public BaseService<BarcodeItem> getService() {
        return barcodeItemService;
    }

    @Autowired
    private BarcodeItemService barcodeItemService;


    @ApiOperation(
            value = "分页、关联、条件查询",
            notes = "分页、关联、条件查询"
    )
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<BarcodeItemResponse>> selectByCond(@RequestBody BarcodeItemQuery barcodeItemQuery) {
        return barcodeItemService.selectByCond(barcodeItemQuery);
    }
}
