using BPA.SAAS.Manage.Application.Org.Dtos.Company; using BPA.SAAS.Manage.Application.Org.Interface; using BPA.SAAS.Manage.Core.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Application.Org { [ApiDescriptionSettings("Org", Tag = "加盟商信息")] public class CompanyServices: IDynamicApiController { ICompanyService _companyService; public CompanyServices(ICompanyService companyService) { _companyService=companyService; } /// /// 查询企业信息 /// /// /// [HttpPost("/api/company/companypage")] public async Task CompanyPage(CompanyDtoPageInput input) { return await _companyService.CompanyPage(input); } /// /// 添加企业信息 /// /// /// [HttpPost("/api/company/add")] public async Task AddCompany(CompanyDtoInput input) { return await _companyService.AddCompany(input); } /// /// 修改企业信息 /// /// /// [HttpPost("/api/company/update")] public async Task UpdateCompany(CompanyDtoInput input) { return await _companyService.UpdateCompany(input); } /// /// 删除企业信息 /// /// /// [HttpPost("/api/company/delete")] public async Task BatchDelCompany(List inputList) { return await _companyService.BatchDelCompany(inputList); } /// /// 启用 /// /// /// [HttpGet("/api/company/enable")] public async Task Enable(string Id) { return await _companyService.Enable(Id); } /// /// 禁用 /// /// /// [HttpGet("/api/company/disable")] public async Task Disable(string Id) { return await _companyService.Disable(Id); } } }