| | |
| | | using ZeroD.Util.Fadd; |
| | | using Volo.Abp.Uow; |
| | | using Nest; |
| | | using Volo.Abp; |
| | | |
| | | namespace LifePayment.HttpApi |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取推广员信息 |
| | | /// </summary> |
| | | /// <param name="phoneNumber"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<PromoterDto> GetPromoter(string phoneNumber) |
| | | { |
| | | return await promoterService.GetPromoter(phoneNumber); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取渠道咨询列表 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | |
| | | return await promoterService.GetChannelConsultationFollowupList(id); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取渠道咨询Id |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="FriendlyException"></exception> |
| | | [HttpGet] |
| | | [AllowAnonymous] |
| | | public async Task<ChannelConsultationDto> GetChannelConsultationById(Guid id) |
| | | { |
| | | return await promoterService.GetChannelConsultationById(id); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 写入 |
| | |
| | | /// <exception cref="FormatException"></exception> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<Guid> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) |
| | | public async Task<CreateOrUpdatePromoterOutput> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input) |
| | | { |
| | | return await promoterService.CreateOrUpdatePromoter(input); |
| | | } |