using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; using Zxd.Core.Domain.Dto.Wework; namespace Zxd.Core.WebApi.Controllers { [ApiSignatureFilterForbid] public class DeptmentController : BaseController { private readonly IDeptmentDomain _deptDomain; /// /// /// /// public DeptmentController(IDeptmentDomain deptDomain) { _deptDomain = deptDomain; } /// /// 获取事业部 /// /// /// [HttpGet("Depts")] public async Task> GetDeptments(bool? IsDept = null) { return await _deptDomain.GetDeptments(IsDept); } /// /// 根据渠道号获取事业部 /// /// /// [HttpGet("Dept")] public async Task GetDeptmentByChannel([Required] int channel) { return await _deptDomain.GetDeptmentByChannel(channel); } } }