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

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

posted @ 2024-12-12 23:44  VellyKiey  阅读(16)  评论(0)    收藏  举报