mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
增加撤销与启动,详见:#I3ILBG
调整工程结构,采用模块化机制
This commit is contained in:
59
OpenAuth.App/Jobs/Request/AddOrUpdateOpenJobReq.cs
Normal file
59
OpenAuth.App/Jobs/Request/AddOrUpdateOpenJobReq.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
using OpenAuth.Repository.Core;
|
||||
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 定时任务
|
||||
/// </summary>
|
||||
[Table("OpenJob")]
|
||||
public partial class AddOrUpdateOpenJobReq
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
public string JobName { get; set; }
|
||||
/// <summary>
|
||||
/// 任务执行方式0:本地任务;1:外部接口任务
|
||||
/// </summary>
|
||||
public int JobType { get; set; }
|
||||
/// <summary>
|
||||
/// 任务地址
|
||||
/// </summary>
|
||||
public string JobCall { get; set; }
|
||||
/// <summary>
|
||||
/// 任务参数,JSON格式
|
||||
/// </summary>
|
||||
public string JobCallParams { get; set; }
|
||||
/// <summary>
|
||||
/// CRON表达式
|
||||
/// </summary>
|
||||
public string Cron { get; set; }
|
||||
/// <summary>
|
||||
/// 任务运行状态(0:停止,1:正在运行,2:暂停)
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
16
OpenAuth.App/Jobs/Request/ChangeJobStatusReq.cs
Normal file
16
OpenAuth.App/Jobs/Request/ChangeJobStatusReq.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class ChangeJobStatusReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务ID
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 改变任务状态
|
||||
/// 0:停止;1:启动(任务变成正在运行)
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
}
|
||||
}
|
7
OpenAuth.App/Jobs/Request/QueryOpenJobListReq.cs
Normal file
7
OpenAuth.App/Jobs/Request/QueryOpenJobListReq.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace OpenAuth.App.Request
|
||||
{
|
||||
public class QueryOpenJobListReq : PageReq
|
||||
{
|
||||
//todo:添加自己的请求字段
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user