创建文件夹记录改变传参方式

main
陈伟 2 months ago
parent 472bacf0c6
commit d6ce675a87

@ -0,0 +1,7 @@
namespace OpenAuth.App.ServiceApp.AirLine.Request;
public class FolderCreateReq
{
public string FolderName { get; set; }
public string ParentId { get; set; }
}

@ -366,6 +366,10 @@ namespace OpenAuth.App.ServiceApp
task.CreateId = user.Id;
task.CreateUserName = user.Name;
task.CreateTime = DateTime.Now;
// todo 添加一些航线信息
// 如:执行时长,单次定时的时间
// 0-飞行计划 1-指点飞行
task.FlightTaskType = 0; //
var flag = await db.LasaTask.InsertAsync(task);
// todo 判断任务类型添加openjob记录 (openjob 增删改)
// //{"0":"立即任务","1":"定时任务",

@ -258,9 +258,9 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
// todo 删除文件夹
// todo 文件夹列表
[HttpPost]
public async Task<Response<bool>> CreateAirLineFolder(string folderName, string parentId)
public async Task<Response<bool>> CreateAirLineFolder(FolderCreateReq req)
{
return await _app.CreateAirLineFolder(folderName, parentId);
return await _app.CreateAirLineFolder(req.FolderName, req.ParentId);
}
/// <summary>

Loading…
Cancel
Save