121 lines
4.0 KiB
C#
121 lines
4.0 KiB
C#
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using MyCode.Project.Domain.Message.Response.User;
|
|
using MyCode.Project.Infrastructure.Constant;
|
|
using MyCode.Project.WebApi.Controllers;
|
|
using MyCode.Project.Domain.Config;
|
|
using MyCode.Project.Services;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Domain.Message.Request.User;
|
|
using MyCode.Project.Infrastructure.Enumeration;
|
|
using MyCode.Project.Domain.Message.Act.User;
|
|
using MyCode.Project.Domain.Message.Response.Goods;
|
|
using MyCode.Project.Domain.Model;
|
|
using MyCode.Project.Domain.Message.Response.Common;
|
|
using MyCode.Project.Domain.Businesses.BillKeeping;
|
|
using MyCode.Project.Domain.Message.Response.Member;
|
|
using MyCode.Project.Domain.Message.Request.Million;
|
|
using MyCode.Project.Domain.Message.Common;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 邀约客户相关 相关
|
|
/// </summary>
|
|
public class InvitationMemberController : BaseWechatController
|
|
{
|
|
|
|
private IMemberService _memberService;
|
|
|
|
public InvitationMemberController(IMemberService memberService )
|
|
{
|
|
_memberService = memberService;
|
|
}
|
|
|
|
#region SaveInvitationMember (4.0版本保存预约客户)
|
|
/// <summary>
|
|
/// 4.0版本保存预约客户
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SaveInvitationMember(InvitationMemberAct act)
|
|
{
|
|
_memberService.SaveInvitationMember(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetInvitationMemberList (获取某天的邀约列表)
|
|
/// <summary>
|
|
/// 获取某天的邀约列表
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public List<ActionLog40Resp> GetInvitationMemberList(ShopSalesPerformancReq act)
|
|
{
|
|
if (act == null || act.ShopId == Guid.Empty || act.Date < DateTime.Parse("2000-01-01"))
|
|
{
|
|
return new List<ActionLog40Resp>();
|
|
}
|
|
return _memberService.GetInvitationMemberList(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetInvitationMemberInfo(获取某条会员的邀约记录详情)
|
|
/// <summary>
|
|
/// 获取某条会员的邀约记录详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
[HttpGet]
|
|
public InvitationMemberAct GetInvitationMemberInfo(Guid id)
|
|
{
|
|
return _memberService.GetInvitationMemberInfo(id);
|
|
}
|
|
#endregion
|
|
|
|
#region DeleteInvitationMember(删除会员邀约记录)
|
|
/// <summary>
|
|
/// 删除会员邀约记录
|
|
/// </summary>
|
|
/// <param name="act">行为记录主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void DeleteInvitationMember(IdAct act)
|
|
{
|
|
_memberService.DeleteInvitationMember(act.Id,this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region GetMemberOfInvite40(4.0版本根据条件获取会员邀约列表)
|
|
/// <summary>
|
|
/// 4.0版本根据条件获取会员邀约列表
|
|
/// </summary>
|
|
/// <param name="request">搜索条件</param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<MemberOfInvite40Resp> GetMemberOfInvite40(PagedSearch<MemberOfInviteRequst> request)
|
|
{
|
|
return _memberService.GetMemberOfInvite(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetRecentInvitationDetail(获取会员最近的一条邀约记录详情)
|
|
/// <summary>
|
|
/// 获取会员最近的一条邀约记录详情
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
[HttpPost]
|
|
public InvitationMemberAct GetRecentInvitationDetail(GetInvitationMemberInfoRequest req)
|
|
{
|
|
return _memberService.GetRecentInvitationDetail(req);
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|