-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
479 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
XinjingdailyBot.Infrastructure/Attribute/TaskMarkAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using XinjingdailyBot.Infrastructure.Enums; | ||
|
||
namespace XinjingdailyBot.Infrastructure.Attribute | ||
{ | ||
|
||
/// <summary> | ||
/// 用于标记Query命令 | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method, Inherited = false)] | ||
public sealed class TaskMarkAttribute : System.Attribute | ||
{ | ||
//TimeSpan | ||
|
||
///// <summary> | ||
///// 创建特性 | ||
///// </summary> | ||
///// <param name="command"></param> | ||
//public TaskMarkAttribute(string command) | ||
//{ | ||
// Command = command; | ||
// Rights = UserRights.None; | ||
//} | ||
///// <summary> | ||
///// 创建特性 | ||
///// </summary> | ||
///// <param name="command"></param> | ||
///// <param name="rights"></param> | ||
//public TaskMarkAttribute(string command, UserRights rights) | ||
//{ | ||
// Command = command; | ||
// Rights = rights; | ||
//} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
XinjingdailyBot.Tasks/TaskService.cs → ...ailyBot.Service/Bot/Common/TaskService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.