mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
feat: 新增创建聊天关联id
This commit is contained in:
parent
89260dc751
commit
d423c2bd05
@ -1792,7 +1792,7 @@ class DialogController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @api {post} api/dialog/okr/add 39. 创建OKR评论会话
|
||||
*
|
||||
* @apiDescription 需要token身份
|
||||
@ -1800,7 +1800,8 @@ class DialogController extends AbstractController
|
||||
* @apiGroup dialog
|
||||
* @apiName okr__add
|
||||
*
|
||||
* @apiParam {String} name 标题
|
||||
* @apiParam {String} name 标题
|
||||
* @apiParam {number} link_id 关联id
|
||||
* @apiParam {Array} userids 群成员,格式: [userid1, userid2, userid3]
|
||||
*
|
||||
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
||||
@ -1812,6 +1813,7 @@ class DialogController extends AbstractController
|
||||
$user = User::auth();
|
||||
//
|
||||
$name = trim(Request::input('name'));
|
||||
$link_id = intval(Request::input('link_id'));
|
||||
$userids = Request::input('userids');
|
||||
//
|
||||
if (empty($name)) {
|
||||
@ -1822,12 +1824,13 @@ class DialogController extends AbstractController
|
||||
if (empty($dialog)) {
|
||||
return Base::retError('创建群组失败');
|
||||
}
|
||||
if ($link_id) {
|
||||
$dialog->link_id = $link_id;
|
||||
$dialog->save();
|
||||
}
|
||||
return Base::retSuccess('创建成功', $dialog);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @api {post} api/dialog/okr/push 40. 推送OKR相关信息
|
||||
*
|
||||
|
||||
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddWebSocketDialogsLinkId extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
Schema::table('web_socket_dialogs', function (Blueprint $table) {
|
||||
if (!Schema::hasColumn('web_socket_dialogs', 'link_id')) {
|
||||
$table->bigInteger('link_id')->nullable()->default(0)->after('owner_id')->comment('关联id');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::table('web_socket_dialogs', function (Blueprint $table) {
|
||||
$table->dropColumn("link_id");
|
||||
});
|
||||
}
|
||||
}
|
||||
28
public/docs/assets/main.bundle.js
vendored
28
public/docs/assets/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
1
public/docs/assets/main.css
vendored
1
public/docs/assets/main.css
vendored
@ -49,7 +49,6 @@ input[type="date"] {
|
||||
src: url('./glyphicons-halflings-regular.eot');
|
||||
src: url('./glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
|
||||
url('./glyphicons-halflings-regular.woff') format('woff'),
|
||||
url('./glyphicons-halflings-regular.woff2') format('woff2'),
|
||||
url('./glyphicons-halflings-regular.ttf') format('truetype'),
|
||||
url('./glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
|
||||
}
|
||||
|
||||
@ -5,13 +5,13 @@
|
||||
<meta name="description" content="APP接口文档">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="assets/bootstrap.min.css?v=1686057148627" rel="stylesheet" media="screen">
|
||||
<link href="assets/prism.css?v=1686057148627" rel="stylesheet" />
|
||||
<link href="assets/main.css?v=1686057148627" rel="stylesheet" media="screen, print">
|
||||
<link href="assets/favicon.ico?v=1686057148627" rel="icon" type="image/x-icon">
|
||||
<link href="assets/apple-touch-icon.png?v=1686057148627" rel="apple-touch-icon" sizes="180x180">
|
||||
<link href="assets/favicon-32x32.png?v=1686057148627" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="assets/favicon-16x16.png?v=1686057148627" rel="icon" type="image/png" sizes="16x16">
|
||||
<link href="assets/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
<link href="assets/prism.css" rel="stylesheet" />
|
||||
<link href="assets/main.css" rel="stylesheet" media="screen, print">
|
||||
<link href="assets/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<link href="assets/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180">
|
||||
<link href="assets/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="assets/favicon-16x16.png"rel="icon" type="image/png" sizes="16x16">
|
||||
</head>
|
||||
|
||||
<body class="container-fluid">
|
||||
@ -928,6 +928,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/main.bundle.js?v=1686057148627"></script>
|
||||
<script src="assets/main.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user