This commit is contained in:
2025-07-04 09:50:02 +08:00
commit 3d800dbd11
2564 changed files with 1353015 additions and 0 deletions

View File

@@ -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>();
}
}
}
}

View File

@@ -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
}
}