99
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using MyCode.Project.Domain.Message.Response.User;
|
||||
using MyCode.Project.Infrastructure.Constant;
|
||||
using MyCode.Project.WebApi.Controllers;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
||||
{
|
||||
public class BaseWechatController : BaseAPIController
|
||||
{
|
||||
/// <summary>
|
||||
/// 取得登陆信息
|
||||
/// </summary>
|
||||
protected MemberLoginInfo CurrentLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
var obj = this.RequestContext.RouteData.Values[Const.LoginInfoKey];
|
||||
|
||||
return ((JObject)obj).ToObject<MemberLoginInfo>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using MyCode.Project.Domain.Config;
|
||||
using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
|
||||
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
|
||||
using MyCode.Project.Services;
|
||||
using MyCode.Project.WebApi.Controllers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ReportController : BaseWechatController
|
||||
{
|
||||
#region 初始化
|
||||
private readonly IReportService _reportService;
|
||||
public ReportController(IReportService reportService)
|
||||
{
|
||||
_reportService = reportService;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Test(测试方法)
|
||||
/// <summary>
|
||||
/// 测试方法
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public void Test()
|
||||
{
|
||||
var admin = CurrentLogin;
|
||||
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user