ComplianceServer/code/Hg.Internal.WebApi/Controllers/CustomerController.cs

49 lines
1.4 KiB
C#

using Hg.Internal.Domain.Impl;
using System.Security.Cryptography;
namespace Hg.Core.Internal.WebApi.Controllers
{
[ApiSignatureFilterForbid]
public class CustomerController : BaseController
{
private readonly ICustomerDomain _customerDomain;
public CustomerController(ICustomerDomain customerDomain)
{
_customerDomain = customerDomain;
}
/// <summary>
/// 手机号
/// </summary>
/// <param name="resid"></param>
/// <returns></returns>
[HttpGet("moblies")]
public async Task<List<CustomerMoblieDto>> GetCustomerMobliesByResid(string? resid)
{
return await _customerDomain.GetCustomerMobliesByResid(resid);
}
/// <summary>
/// 获取用户详情
/// </summary>
/// <param name="resid"></param>
/// <returns></returns>
[HttpGet("details")]
public async Task<ComplaintCustomerInfoDto> GetCustomerDetailsByResid(string? resid)
{
return await _customerDomain.GetCustomerDetailsByResid(resid);
}
/// <summary>
/// 关联客户
/// </summary>
/// <param name="resid"></param>
/// <returns></returns>
[HttpGet("relation_customers")]
public async Task<List<string>> GetRelationCustomersByResid(string? resid)
{
return await _customerDomain.GetRelationCustomersByResid(resid);
}
}
}