Skip to content

NIGHT+ | 带领年轻人探索新潮夜生活的互动体验平台

Notifications You must be signed in to change notification settings

ArkTicketTech/NightPlus_ChatRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NightPlus_ChatRobot

NIGHT+ | 带领年轻人探索新潮夜生活的互动体验平台

Using

$ cd NightPlus_ChatRobot
$ npm install
$ npm run build-ts
$ npm run dev
  • get token
curl --request POST \
  --url http://localhost:3000/token \
  --header 'authorization: ' \
  --header 'content-type: application/json' \
  --data '{\n	"username": "airplake",\n	"password": "123"\n}'
  • Books RESTful api

datebase schema

 userSchema = new Schema({
     name: String,
     region: String,
     info: {}
 })
 roomSchema = new Schema({
     name: String,
     region: String,
     userIds: []
 })
 msgSchema = new Schema({
     from: {
         userId: String
     },
     room: String,
     content: String
 })
keywordSchema = new Schema({
    keyword: String,
    responseId: Number
})
 ruleSchema = new Schema({
     name: String,
     query: String,
     responseId: String
 })
 responseResourceSchema = new Schema({
     response: []
 })

About

NIGHT+ | 带领年轻人探索新潮夜生活的互动体验平台

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •