11.20-12-12移动开发记录
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聊天部分,聊天示例:
消息会显示发送消息的时间,对话框主打简洁干净,以上就是全部的内容了,下次更新。
本文作者:VellyKiey
本文链接:https://www.cnblogs.com/vellynia/p/18603720
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步