mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 16:33:49 +00:00
feat: admin set share
This commit is contained in:
@@ -77,7 +77,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
||||
}
|
||||
},
|
||||
{
|
||||
$sort: { 'share.collection': -1 }
|
||||
$sort: { 'share.topNum': -1, 'share.collection': -1 }
|
||||
},
|
||||
{
|
||||
$skip: (pageNum - 1) * pageSize
|
||||
|
@@ -344,7 +344,7 @@ ${e.password ? `密码为: ${e.password}` : ''}`;
|
||||
{isOwner && (
|
||||
<>
|
||||
{/* model share setting */}
|
||||
<Card p={4}>
|
||||
{/* <Card p={4}>
|
||||
<Box fontWeight={'bold'}>分享设置</Box>
|
||||
<Box>
|
||||
<Flex mt={5} alignItems={'center'}>
|
||||
@@ -373,7 +373,7 @@ ${e.password ? `密码为: ${e.password}` : ''}`;
|
||||
/>
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Card> */}
|
||||
<Card p={4}>
|
||||
<Flex justifyContent={'space-between'}>
|
||||
<Box fontWeight={'bold'}>关联的知识库</Box>
|
||||
@@ -411,7 +411,7 @@ ${e.password ? `密码为: ${e.password}` : ''}`;
|
||||
</>
|
||||
)}
|
||||
{/* shareChat */}
|
||||
<Card p={4} gridColumnStart={1} gridColumnEnd={[2, 3]}>
|
||||
<Card p={4}>
|
||||
<Flex justifyContent={'space-between'}>
|
||||
<Box fontWeight={'bold'}>
|
||||
免登录聊天窗口
|
||||
|
@@ -61,6 +61,10 @@ const ModelSchema = new Schema({
|
||||
}
|
||||
},
|
||||
share: {
|
||||
topNum: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
isShare: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
Reference in New Issue
Block a user