2025-04-24 18:31:27 +08:00

53 lines
1.5 KiB
C#

using MyCode.Project.Domain.Message.Request.Million;
using MyCode.Project.Domain.Message.Response.MillionPolicy;
using MyCode.Project.Services;
using MyCode.Project.Services.Implementation.MillionPolicy;
using System;
using System.Collections.Generic;
using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
{
/// <summary>
///在线录入数据 相关
/// </summary>
public class OnlineDataEntryController : BaseWechatController
{
private IOnlineDataEntryService _onlineDataEntryService ;
/// <summary>
///
/// </summary>
public OnlineDataEntryController(IOnlineDataEntryService onlineDataEntryService)
{
_onlineDataEntryService = onlineDataEntryService;
}
#region Save()
/// <summary>
/// 保存录入数据
/// </summary>
/// <param name="act"></param>
[HttpPost]
public void Save(DataEntryAct act)
{
_onlineDataEntryService.Save(act,this.CurrentLogin);
}
#endregion
#region GetDetail(+ID获取详情)
/// <summary>
/// 根据日期+店铺ID获取详情
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
public DataEntryAct GetDetail(ShopOnlineDataEntryReq req)
{
return _onlineDataEntryService.GetDetail(req);
}
#endregion
}
}