当黄昏在天际|

VellyKiey

园龄:3个月粉丝:2关注:1

11.20-12-12移动开发记录

NETMAUI

1、MySQL搭建

在我的服务器上完成MySQL搭建:

[root ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is ???
Server version: 8.0.40 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use chatmedical;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> describe users;
+------------+-------------+------+-----+-------------------+-------------------+
| Field      | Type        | Null | Key | Default           | Extra             |
+------------+-------------+------+-----+-------------------+-------------------+
| user_id    | int         | NO   | PRI | NULL              | auto_increment    |
| user_name  | varchar(20) | NO   | UNI | NULL              |                   |
| user_ps    | varchar(60) | NO   |     | NULL              |                   |
| user_email | varchar(30) | YES  |     | NULL              |                   |
| user_p_num | varchar(11) | YES  |     | NULL              |                   |
| CreatedAt  | datetime    | YES  |     | CURRENT_TIMESTAMP | DEFAULT_GENERATED |
+------------+-------------+------+-----+-------------------+-------------------+
6 rows in set (0.00 sec)

成功创建了users表,用于存储用户信息。

应用程序成功连接到了服务器上的数据库,能够注册用户和登录用户:

注册和登录

点击登录会直接进入主界面所以不展示过程,点击注册会跳到注册页面,左上角返回用于返回之前的页面,比如登录页面。

2、与AI交流

容器shell包含三个部分:1、主页;2、健康助手(AI聊天);3、个人信息

目前界面只完成了AI聊天部分,聊天示例:

chatmessage

消息会显示发送消息的时间,对话框主打简洁干净,以上就是全部的内容了,下次更新。

本文作者:VellyKiey

本文链接:https://www.cnblogs.com/vellynia/p/18603720

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   VellyKiey  阅读(9)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起