We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gantt title Chat聊天室开发周期 dateFormat YYYY-MM-DD section RedCrazyGhost Server :Server,2021-11-25,10d Server和Client联调整合 :after Server,10d section 客户端-Home Client-HomeView :HomeView,2021-11-25,10d Chat系统PPT :after HomeView,10d section 客户端-System Client-SystemView :SystemView,2021-11-25,10d Chat系统实验报告 :after SystemView,10d
RedCrazyGhost
flowchart TD 程序启动-->数据库配置 数据库配置-->手动配置 数据库配置-->默认配置 手动配置-->数据库测试连接 默认配置-->数据库测试连接-->|失败|程序关闭 数据库测试连接-->|成功|开启选择器-->ServerSocketChannel配置-->聊天室启动-->监听选择器事件-->连接事件-->SocketChannel配置-->删除当前活动 监听选择器事件-->可读事件-->获取SocketChannel-->|JSON|反射创建类调用方法 反射创建类调用方法-->|JSON|判断发送对象-->|JSON|Client-->删除当前活动-->监听选择器事件
flowchart LR subgraph Client["客户端"] 客户端启动-->配置目标服务器--> HomeView-->|选择1|注册账号-->输入注册用户名-->输入注册密码-->输入注册邮箱-->注册结果显示--> HomeView---->|选择2|登陆账号-->输入登录用户名-->输入登陆密码-->登陆结果显示 HomeView-->|选择3|找回密码-->输入找回用户名-->输入找回邮箱-->找回密码结果显示-->HomeView HomeView-->|选择4|退出客户端-->客户端关闭 登陆结果显示-->|登陆成功|SystemView 登陆结果显示-->|登陆失败|HomeView SystemView-->|选择1|查询在线人员结果---->查询在线人员结果显示--> SystemView-->|选择2|私聊-->输入私聊对象-->输入私聊内容-->私聊内容显示--> SystemView-->|选择3|群聊-->输入群聊内容-->群聊信息显示--> SystemView-->|选择4|修改密码-->输入旧密码-->输入新密码-->修改密码结果显示--> SystemView-->|选择5|注销账号-->输入密码-->|注销失败|SystemView 输入密码-->|注销成功|HomeView SystemView-->|选择6|退出系统----->HomeView end subgraph Server["服务端"] 监听选择器事件-->可读事件-->获取SocketChannel-->|JSON|反射创建类调用方法-->判断发送对象-->删除当前活动-->监听选择器事件 end Client-.->|JSON|Server Server-.->|JSON|Client
sequenceDiagram autonumber par 私聊流程 1-4 Client1->>+Server:Client2-你今天吃的什么? Server-->>-Client2:Client1:你今天吃的什么? Client2->>+Server:Client1-清真的牛肉拉面 Server-->>-Client1:Client2:清真的牛肉拉面 end par 群聊流程 5-16 Client3->>+Server:All-群里面有人吗? Server-->>Client3:群聊:Client3:群里面有人吗? Server-->>Client2:群聊:Client3:群里面有人吗? Server-->>-Client1:群聊:Client3:群里面有人吗? Client1->>+Server:All-我在群里啊! Server-->>Client3:群聊:Client1:我在群里啊! Server-->>Client2:群聊:Client1:我在群里啊! Server-->>-Client1:群聊:Client1:我在群里啊! Client2->>+Server:All-我也在群里啊! Server-->>Client3:群聊:Client2:我也在群里啊! Server-->>Client2:群聊:Client2:我也在群里啊! Server-->>-Client1:群聊:Client2:我也在群里啊! end par 混合聊天流程 18-22 Client3->>+Server:All-群里面有人吗? Server-->>Client3:群聊:Client3:群里面有人吗? Server-->>Client2:群聊:Client3:群里面有人吗? Client2->>+Server:Client1-今天你打算去哪里玩? Server-->>-Client1:Client2:今天你打算去哪里玩? Server-->>-Client1:群聊:Client3:群里面有人吗? end
database: url: 'jdbc:mysql://127.0.0.1:3306/Chat?characterEncoding=UTF-8' username: 'root' password: '123456'
字符串示例: {"body":{"password":"test","username":"test"},"head":{"PATH":"Home-login","TOKEN":"(username)","ENCODING":"GBK"}}
flowchart TD subgraph Server 添加用户 查询用户 删除用户 修改用户 服务端通道 在线用户 私聊 群聊 数据库 日志 end
flowchart TD subgraph Client-HomeView 用户注册 用户登录 找回密码 程序退出 end
flowchart TD subgraph Client-SystemView 查看在线人员 私聊 群聊 修改密码 账号注销 退出系统 end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Chat系统项目截止日期:2021年12月15日
设计实验报告(1份)
RedCrazyGhost
答辩PPT(1份)
RedCrazyGhost
主要开发工作截止日期:2021年12月5日
Server端程序运行流程图
Client端程序运行流程图
聊天功能时序图
数据库
默认配置(YAML)
USER表结构
Request(JSON格式字符串) 客户端和服务端传输内容要求
字符串示例: {"body":{"password":"test","username":"test"},"head":{"PATH":"Home-login","TOKEN":"(username)","ENCODING":"GBK"}}
head
body(携带参数)
源码(1份)分工如下
RedCrazyGhost
客户端-Home
客户端-System
The text was updated successfully, but these errors were encountered: