-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
272 additions
and
152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ yarn-error.log | |
.history | ||
CNAME | ||
/build | ||
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
{ | ||
"identifier": "chat-plugin-template", | ||
"version": "1", | ||
"api": [ | ||
{ | ||
"url": "http://localhost:3400/api/v1", | ||
"name": "greetUser", | ||
"description": "当用户说出 hello 后,你需要问候用户,并祝他开心", | ||
"url": "http://localhost:3400/api/clothes", | ||
"name": "recommendClothes", | ||
"description": "根据用户的心情,给用户推荐他有的衣服", | ||
"parameters": { | ||
"properties": { | ||
"nickname": { | ||
"description": "用户的名字,例如:张三 等", | ||
"mood": { | ||
"description": "用户当前的心情,可选值有:开心(happy), 难过(sad),生气 (anger),害怕(fear),惊喜( surprise),厌恶 (disgust)", | ||
"enums": ["happy", "sad", "anger", "fear", "surprise", "disgust"], | ||
"type": "string" | ||
}, | ||
"gender": { | ||
"type": "string", | ||
"enum": ["man", "woman"], | ||
"description": "用户的性别" | ||
} | ||
}, | ||
"required": [ | ||
"nickname" | ||
], | ||
"required": ["mood", "gender"], | ||
"type": "object" | ||
} | ||
} | ||
], | ||
"gateway": "http://localhost:3400/api/gateway", | ||
"identifier": "chat-plugin-template", | ||
"ui": { | ||
|
||
} | ||
"url": "http://localhost:3400", | ||
"height": 200 | ||
}, | ||
"version": "1" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
export const manClothes = { | ||
anger: [ | ||
{ | ||
description: '这款黑色皮夹克可以让你在生气时释放压力。', | ||
name: '黑色皮夹克', | ||
}, | ||
{ | ||
description: '这款深红色的衬衫可以让你在生气时感到力量。', | ||
name: '深红色长袖衬衫', | ||
}, | ||
{ | ||
description: '这款军绿色的工装裤可以让你在生气时感到坚韧。', | ||
name: '军绿色工装裤', | ||
}, | ||
], | ||
disgust: [ | ||
{ | ||
description: '这款黑色的T恤可以让你在厌恶时感到冷静。', | ||
name: '黑色修身T恤', | ||
}, | ||
{ | ||
description: '这款深色的裤子可以让你在厌恶时感到自在。', | ||
name: '深色直筒休闲裤', | ||
}, | ||
{ | ||
description: '这款军绿色的夹克可以让你在厌恶时感到坚定。', | ||
name: '军绿色工装夹克', | ||
}, | ||
], | ||
fear: [ | ||
{ | ||
description: '这款宽松的卫衣可以让你在害怕时感到安全。', | ||
name: '灰色宽松连帽卫衣', | ||
}, | ||
{ | ||
description: '这款黑色的裤子可以让你在害怕时感到舒适。', | ||
name: '黑色直筒休闲裤', | ||
}, | ||
{ | ||
description: '这款深色的夹克可以让你在害怕时感到保护。', | ||
name: '深蓝色牛仔夹克', | ||
}, | ||
], | ||
happy: [ | ||
{ | ||
description: '这款明亮的T恤可以增强你的快乐气氛。', | ||
name: '亮黄色夏日T恤', | ||
}, | ||
{ | ||
description: '这款活泼的短裤可以让你的心情保持愉快。', | ||
name: '卡通图案运动短裤', | ||
}, | ||
{ | ||
description: '这款色彩明亮的衬衫可以让你看起来更加开朗。', | ||
name: '彩色条纹休闲衬衫', | ||
}, | ||
], | ||
sad: [ | ||
{ | ||
description: '舒适的卫衣可以让你在难过的时候感到舒适。', | ||
name: '深色宽松卫衣', | ||
}, | ||
{ | ||
description: '这款深色的夹克可以让你在难过的时候感到安慰。', | ||
name: '黑色牛仔夹克', | ||
}, | ||
{ | ||
description: '简单的黑色T恤可以让你在难过的时候感到平静。', | ||
name: '简洁黑色长袖T恤', | ||
}, | ||
], | ||
surprise: [ | ||
{ | ||
description: '这款亮色的T恤可以让你在惊喜时感到愉悦。', | ||
name: '亮色图案T恤', | ||
}, | ||
{ | ||
description: '这款鲜艳的短裤可以让你在惊喜时感到活力。', | ||
name: '鲜艳色彩运动短裤', | ||
}, | ||
{ | ||
description: '这款多彩条纹的衬衫可以让你在惊喜时感到快乐。', | ||
name: '多彩条纹衬衫', | ||
}, | ||
], | ||
}; | ||
|
||
export const womanClothes = { | ||
anger: [ | ||
{ | ||
description: '这款黑色皮夹克可以让你在生气时释放压力。', | ||
name: '黑色皮夹克', | ||
}, | ||
{ | ||
description: '这款深红色的衬衫可以让你在生气时感到力量。', | ||
name: '深红色长袖衬衫', | ||
}, | ||
{ | ||
description: '这款军绿色的工装裤可以让你在生气时感到坚韧。', | ||
name: '军绿色工装裤', | ||
}, | ||
], | ||
disgust: [ | ||
{ | ||
description: '这款黑色的连衣裙可以让你在厌恶时感到冷静。', | ||
name: '黑色修身连衣裙', | ||
}, | ||
{ | ||
description: '这款深色的裤子可以让你在厌恶时感到自在。', | ||
name: '深色直筒休闲裤', | ||
}, | ||
{ | ||
description: '这款军绿色的夹克可以让你在厌恶时感到坚定。', | ||
name: '军绿色工装夹克', | ||
}, | ||
], | ||
fear: [ | ||
{ | ||
description: '这款宽松的卫衣可以让你在害怕时感到安全。', | ||
name: '灰色宽松连帽卫衣', | ||
}, | ||
{ | ||
description: '这款黑色的裤子可以让你在害怕时感到舒适。', | ||
name: '黑色直筒休闲裤', | ||
}, | ||
{ | ||
description: '这款深色的夹克可以让你在害怕时感到保护。', | ||
name: '深蓝色牛仔夹克', | ||
}, | ||
], | ||
happy: [ | ||
{ | ||
description: '这款明亮的连衣裙可以增强你的快乐气氛。', | ||
name: '亮黄色夏日连衣裙', | ||
}, | ||
{ | ||
description: '这款活泼的短裤可以让你的心情保持愉快。', | ||
name: '卡通图案运动短裤', | ||
}, | ||
{ | ||
description: '这款色彩明亮的衬衫可以让你看起来更加开朗。', | ||
name: '彩色条纹休闲衬衫', | ||
}, | ||
], | ||
sad: [ | ||
{ | ||
description: '舒适的连衣裙可以让你在难过的时候感到舒适。', | ||
name: '深色宽松连衣裙', | ||
}, | ||
{ | ||
description: '这款深色的夹克可以让你在难过的时候感到安慰。', | ||
name: '黑色牛仔夹克', | ||
}, | ||
{ | ||
description: '简单的黑色T恤可以让你在难过的时候感到平静。', | ||
name: '简洁黑色长袖T恤', | ||
}, | ||
], | ||
surprise: [ | ||
{ | ||
description: '这款亮色的连衣裙可以让你在惊喜时感到愉悦。', | ||
name: '亮色图案连衣裙', | ||
}, | ||
{ | ||
description: '这款鲜艳的短裤可以让你在惊喜时感到活力。', | ||
name: '鲜艳色彩运动短裤', | ||
}, | ||
{ | ||
description: '这款多彩条纹的衬衫可以让你在惊喜时感到快乐。', | ||
name: '多彩条纹衬衫', | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.