29 lines
799 B
C#
29 lines
799 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Zxd.Crm.Domain.Dto;
|
|
using Zxd.Crm.Domain.Dto.Extuser;
|
|
using Zxd.Crm.Domain.Impl;
|
|
|
|
namespace Zxd.Crm.WebApi.Controllers
|
|
{
|
|
[ApiSignatureFilterForbid]
|
|
public class ExtuserController : BaseController
|
|
{
|
|
private readonly IExtuserDomain _extuserDomain;
|
|
|
|
public ExtuserController(IExtuserDomain extuserDomain)
|
|
{
|
|
_extuserDomain = extuserDomain;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 处理企微客户关系绑定
|
|
/// </summary>
|
|
/// <param name="activeModel"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("BindExtUser")]
|
|
public async Task<bool> AddTemplate([FromBody] ExtUserCreateDto dto)
|
|
{
|
|
return await _extuserDomain.BindExtUser(dto);
|
|
}
|
|
}
|
|
} |