更新bug和增加部分api

This commit is contained in:
2018-04-23 22:50:37 +08:00
parent 11a6a65dd3
commit 1d49071b1a
7 changed files with 651 additions and 341 deletions
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc;
namespace COMCMS.Web.Controllers.api
{
[Produces("application/json")]
[Route("api/[controller]/[action]")]
public class APIBaseController : Controller
{
#region 通用信息
@@ -11,7 +11,7 @@ using XCode;
namespace COMCMS.Web.Controllers.api
{
[Route("api/[controller]/[action]")]
public class IndexController : APIBaseController
{
// GET: api/<controller>
@@ -16,8 +16,6 @@ namespace COMCMS.Web.Controllers.api
/// <summary>
/// 支付API
/// </summary>
[Produces("application/json")]
[Route("api/Payment")]
public class PaymentController : APIBaseController
{
#region 微信小程序订单支付
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using COMCMS.Common;
using COMCMS.Core;
using COMCMS.Core.Models;
using XCode;
namespace COMCMS.Web.Controllers.api
{
public class UserController : APIBaseController
{
#region 用户登录
[HttpGet]
public object Test()
{
return "abc";
}
#endregion
}
}