using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_IApprovalService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Approval { [Route("api/[controller]")] [ApiController] public class ApprovalTaskController : ApiBaseController { public ApprovalTaskController(IApprovalTaskService service) : base(service) { } [HttpGet, HttpPost, Route("AuditAgree")] public WebResponseContent AuditAgree(int sourceKey) { return Service.AuditAgree(sourceKey); } [HttpGet, HttpPost, Route("AuditReject")] public WebResponseContent AuditReject(int sourceKey) { return Service.AuditReject(sourceKey); } } }