|
...
|
...
|
@@ -11,15 +11,19 @@ use Illuminate\Http\Request; |
|
|
|
use function App\Helper\send_openai_msg;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name:ai指令
|
|
|
|
* @remark :ai指令
|
|
|
|
* @name :AiCommandController
|
|
|
|
* @author :lyh
|
|
|
|
* @time :2023/6/17 16:27
|
|
|
|
*/
|
|
|
|
class AiCommandController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @name :指令列表
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param AiCommandModel $aiCommandModel
|
|
|
|
* @name :lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/17 16:27
|
|
|
|
*/
|
|
|
|
public function lists(AiCommandModel $aiCommandModel){
|
|
|
|
$lists = $aiCommandModel->lists($this->map,$this->page,$this->row,$this->order);
|
|
...
|
...
|
@@ -27,10 +31,11 @@ class AiCommandController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :详情
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param AiCommandLogic $aiCommandLogic
|
|
|
|
* @name :info
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/17 16:27
|
|
|
|
*/
|
|
|
|
public function info(AiCommandLogic $aiCommandLogic){
|
|
|
|
$this->request->validate([
|
|
...
|
...
|
@@ -41,11 +46,14 @@ class AiCommandController extends BaseController |
|
|
|
$aiCommandLogic->ai_info();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param AiCommandRequest $request
|
|
|
|
* @param AiCommandLogic $aiCommandLogic
|
|
|
|
* @name :add
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/17 16:27
|
|
|
|
*/
|
|
|
|
public function add(AiCommandRequest $request,AiCommandLogic $aiCommandLogic){
|
|
|
|
$request->validated();
|
|
...
|
...
|
@@ -54,10 +62,12 @@ class AiCommandController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param AiCommandRequest $request
|
|
|
|
* @param AiCommandLogic $aiCommandLogic
|
|
|
|
* @name :edit
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/17 16:28
|
|
|
|
*/
|
|
|
|
public function edit(AiCommandRequest $request,AiCommandLogic $aiCommandLogic){
|
|
|
|
$request->validate([
|
|
...
|
...
|
@@ -70,10 +80,11 @@ class AiCommandController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name
|
|
|
|
* @return void
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
* @param AiCommandLogic $aiCommandLogic
|
|
|
|
* @name :del
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/17 16:27
|
|
|
|
*/
|
|
|
|
public function del(AiCommandLogic $aiCommandLogic){
|
|
|
|
$this->request->validate([
|
...
|
...
|
|