ow
This commit is contained in:
1 parent
90f26d0dfc
commit
d795476b1f
40 files changed
+2590
No files matched your search
@@ -0,0 +1,16 @@
|
||||
namespace CloudBuilder.AI.Policy
|
||||
{
|
||||
public partial class AIPermissionPolicy
|
||||
{
|
||||
//***BEGIN***
|
||||
public const string AiCharacter = "AiCharacter";
|
||||
public const string AiSentence = "AiSentence";
|
||||
public const string AiWord = "AiWord";
|
||||
public const string AiBook = "AiBook";
|
||||
public const string AiBookPerson = "AiBookPerson";
|
||||
public const string AiChapter = "AiChapter";
|
||||
public const string AiChapterPerson = "AiChapterPerson";
|
||||
public const string AiParagraph = "AiParagraph";
|
||||
//***END***
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using CloudBuilder.Core.DependencyInjection.Policy;
|
||||
using CloudBuilder.Core.DependencyInjection.Request;
|
||||
using CloudBuilder.Core.Policy;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CloudBuilder.AI.Policy
|
||||
{
|
||||
public class BookStatusPolicy : LocalePolicy, IPolicy
|
||||
{
|
||||
public const string SUBMIT = "S";//待提交
|
||||
|
||||
|
||||
private readonly IContext context;
|
||||
private readonly ILocaleMessageManager localeMessageManager;
|
||||
|
||||
public BookStatusPolicy(IContext context, ILocaleMessageManager localeMessageManager) : base(context, localeMessageManager)
|
||||
{
|
||||
this.context = context;
|
||||
this.localeMessageManager = localeMessageManager;
|
||||
|
||||
this.Name = typeof(BookStatusPolicy).Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using CloudBuilder.Core.DependencyInjection.Policy;
|
||||
using CloudBuilder.Core.DependencyInjection.Request;
|
||||
using CloudBuilder.Core.Policy;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CloudBuilder.AI.Policy
|
||||
{
|
||||
|
||||
public class ChapterStatusPolicy : LocalePolicy, IPolicy
|
||||
{
|
||||
public const string PROCESS = "P";//处理中
|
||||
|
||||
|
||||
private readonly IContext context;
|
||||
private readonly ILocaleMessageManager localeMessageManager;
|
||||
|
||||
public ChapterStatusPolicy(IContext context, ILocaleMessageManager localeMessageManager) : base(context, localeMessageManager)
|
||||
{
|
||||
this.context = context;
|
||||
this.localeMessageManager = localeMessageManager;
|
||||
|
||||
this.Name = typeof(BookStatusPolicy).Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user