Commit 9fe91c86 authored by 黄奎's avatar 黄奎

新增测试方法

parent be0f7ed1
...@@ -8,6 +8,7 @@ using Edu.Model.ViewModel.Course; ...@@ -8,6 +8,7 @@ using Edu.Model.ViewModel.Course;
using Edu.Model.ViewModel.System; using Edu.Model.ViewModel.System;
using Edu.Model.ViewModel.User; using Edu.Model.ViewModel.User;
using Edu.Module.Course; using Edu.Module.Course;
using Edu.Module.EduTask;
using Edu.Module.Public; using Edu.Module.Public;
using Edu.Module.System; using Edu.Module.System;
using Edu.Module.User; using Edu.Module.User;
...@@ -54,7 +55,12 @@ namespace Edu.WebApi.Controllers.User ...@@ -54,7 +55,12 @@ namespace Edu.WebApi.Controllers.User
/// 部门处理类对象 /// 部门处理类对象
/// </summary> /// </summary>
private readonly DepartmentModule departmentModule = new DepartmentModule(); private readonly DepartmentModule departmentModule = new DepartmentModule();
/// <summary>
/// 转班订单处理类对象
/// </summary>
private static readonly OrderChangeModule orderChangeModule = new OrderChangeModule();
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
[AllowAnonymous] [AllowAnonymous]
...@@ -77,6 +83,19 @@ namespace Edu.WebApi.Controllers.User ...@@ -77,6 +83,19 @@ namespace Edu.WebApi.Controllers.User
return ApiResult.Success(); return ApiResult.Success();
} }
/// <summary>
/// 更新订单转班
/// </summary>
/// <returns></returns>
[HttpGet]
[HttpPost]
[AllowAnonymous]
public ApiResult TestTrans()
{
orderChangeModule.GetChangeOrderListModule();
return ApiResult.Success();
}
/// <summary> /// <summary>
/// 用户登录 /// 用户登录
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment