package com.storlead.sales.controller.systemrule;


import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.entity.systemrule.ApproveEntity;
import com.storlead.sales.service.systemrule.ApproveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
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;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author YPZ
 * @since 2024-07-26
 */
@RestController
@RequestMapping("/approve")
@Api(tags = "销售: 审核相关接口")
public class ApproveController {

    @Resource
    private ApproveService approveService;

    @ApiOperation("提交审核")
    @PostMapping("/submit")
    public Result savePaySlipApprove(@RequestBody ApproveEntity approve) {

        return approveService.submitApprove(approve);
    }

}
