package com.sqx.modules.material.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.material.entity.MaterialArtificer;
import com.sqx.modules.material.service.MaterialArtificerService;
import com.sqx.modules.material.service.MaterialMassageService;
import com.sqx.modules.material.service.MaterialService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@Api(value = "物料包", tags = {"物料包"})
@RequestMapping(value = "/app/material")
public class AppMaterialController {

    @Autowired
    private MaterialService materialService;
    @Autowired
    private MaterialArtificerService materialArtificerService;
    @Autowired
    private MaterialMassageService materialMassageService;
    @GetMapping("/selectMaterialArtificer")
    @ApiOperation("app查询技师关联物料包数据")
    public Result selectMaterialArtificer(Integer page, Integer limit, MaterialArtificer materialArtificer) {
        return materialService.selectMaterialArtificer(page,limit, materialArtificer);
    }
}