|
|
@@ -28,7 +28,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
28
|
28
|
/// 返回树形下拉框 菜单数据
|
|
29
|
29
|
/// </summary>
|
|
30
|
30
|
/// <returns></returns>
|
|
31
|
|
- [HttpGet]
|
|
|
31
|
+ [HttpGet("getall")]
|
|
32
|
32
|
public async Task<IActionResult> GetALL()
|
|
33
|
33
|
{
|
|
34
|
34
|
var list_ModuleInfo = await _sys_moduleinfoRepository.GetListALL(x => x.F_State == (int)EnumDelState.Enabled, o => o.F_Sort, SqlSugar.OrderByType.Asc);
|
|
|
@@ -80,7 +80,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
80
|
80
|
/// </summary>
|
|
81
|
81
|
/// <param name="mid"></param>
|
|
82
|
82
|
/// <returns></returns>
|
|
83
|
|
- [HttpGet]
|
|
|
83
|
+ [HttpGet("getmodule")]
|
|
84
|
84
|
public async Task<IActionResult> GetModule(int mid)
|
|
85
|
85
|
{
|
|
86
|
86
|
var entity_ModuleInfo = await _sys_moduleinfoRepository.GetSingle(x=>x.F_Id==mid);
|
|
|
@@ -105,11 +105,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
105
|
105
|
}
|
|
106
|
106
|
|
|
107
|
107
|
/// <summary>
|
|
108
|
|
- /// 添加按钮
|
|
|
108
|
+ /// 添加菜单
|
|
109
|
109
|
/// </summary>
|
|
110
|
110
|
/// <param name="input"></param>
|
|
111
|
111
|
/// <returns></returns>
|
|
112
|
|
- [HttpPost]
|
|
|
112
|
+ [HttpPost("addmodule")]
|
|
113
|
113
|
public async Task<IActionResult> AddModule(ModuleInfoInput input)
|
|
114
|
114
|
{
|
|
115
|
115
|
if (string.IsNullOrEmpty(input.name))
|
|
|
@@ -146,7 +146,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
146
|
146
|
/// </summary>
|
|
147
|
147
|
/// <param name="ids"></param>
|
|
148
|
148
|
/// <returns></returns>
|
|
149
|
|
- [HttpPost]
|
|
|
149
|
+ [HttpPost("delmodule")]
|
|
150
|
150
|
public async Task<IActionResult> DelModule(int[] ids)
|
|
151
|
151
|
{
|
|
152
|
152
|
if (ids != null && ids.Length > 0)
|
|
|
@@ -181,7 +181,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.System
|
|
181
|
181
|
/// </summary>
|
|
182
|
182
|
/// <param name="input"></param>
|
|
183
|
183
|
/// <returns></returns>
|
|
184
|
|
- [HttpPost]
|
|
|
184
|
+ [HttpPost("editmodule")]
|
|
185
|
185
|
public async Task<IActionResult> EditModule(ModuleInfoInput input)
|
|
186
|
186
|
{
|
|
187
|
187
|
if (string.IsNullOrEmpty(input.name))
|