ow
This commit is contained in:
1 parent
2e990e687f
commit
4ec2502778
53 files changed
+365
-1854
No files matched your search
@@ -7,11 +7,12 @@ using System.Transactions;
|
||||
using CloudBuilder.Core.Service;
|
||||
using CloudBuilder.AI.Service;
|
||||
using CloudBuilder.Core.DatabaseAccessor.Entity;
|
||||
using CloudBuilder.AI.Entity;
|
||||
using System;
|
||||
using CloudBuilder.AI.Data;
|
||||
using System;
|
||||
using CloudBuilder.AI.Entity;
|
||||
using CloudBuilder.AI.SearchCriteria;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using CloudBuilder.AI;
|
||||
|
||||
namespace CloudBuilder.Web.Entry.Controllers.Ai
|
||||
{
|
||||
@@ -31,7 +32,7 @@ this.aiSentenceService= aiSentenceService;
|
||||
|
||||
[PermissionOperate(name: "AiBook", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindByKey(string key)
|
||||
public dynamic FindByKey(Int64 key)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -51,12 +52,12 @@ this.aiSentenceService= aiSentenceService;
|
||||
|
||||
[PermissionOperate(name: "AiBook", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindByChapterGuid(string chapterGuid)
|
||||
public dynamic FindByChapterId(Int64 chapterId)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = aiSentenceService.FindByChapterGuid(chapterGuid);
|
||||
var result = aiSentenceService.FindByChapterId(chapterId);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
@@ -154,7 +155,7 @@ this.aiSentenceService= aiSentenceService;
|
||||
[PermissionOperate(name: "AiBook", operate: "Delete")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic Delete(string key){
|
||||
public dynamic Delete(Int64 key){
|
||||
try
|
||||
{
|
||||
aiSentenceService.Delete(key);
|
||||
|
||||
Reference in new issue
Block a user