当前位置:网站首页>Management system itclub (Part 2)
Management system itclub (Part 2)
2022-06-27 21:59:00 【Big eye (◉ ɷ ◉) cute】
Management system -ITclub( Next )
author : Xianda egg
The goal is : Complete the project
describe :ITclub It is a platform for programmers to share life dynamics
List of articles
- Management system -ITclub( Next )
- Tag interface development
- To upload pictures
- Project Closing (2022-6-3)
Tag interface development
Ideas : A dynamic can have multiple tags , A label can also correspond to multiple dynamic
Create a label table
CREATE TABLE IF NOT EXISTS `label`(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(10) NOT NULL UNIQUE,
createAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updateAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
Define the interface for creating labels
1. Routing configuration Router

2. Verify user login
middleware (verifyAuthor)
3. Create a label


Create labels and dynamic relationship tables
CREATE TABLE IF NOT EXISTS `moment_label`(
moment_id INT NOT NULL,
label_id INT NOT NULL,
createAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updateAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY(moment_id, label_id),
FOREIGN KEY (moment_id) REFERENCES moment(id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (label_id) REFERENCES label(id) ON DELETE CASCADE ON UPDATE CASCADE
);
Define the interface for dynamically adding labels
1. Add new interfaces to the dynamic



2. Bind tags to dynamic content


Query label interface
Query dynamic list , Number of display labels

Query Dynamic Details , Show tag list

To upload pictures
Upload avatar logic
demand : picture ( file ) Upload /upload/avatar
Purpose : The server can save a picture
solve : Provide an interface , It allows users to get pictures —> take URL Store in user information —> When getting information , Get user image
1. Define the upload avatar interface



2. Define the image acquisition interface


3. When requesting user information , Get a picture

Upload dynamic configuration drawings
1. Define the interface for uploading dynamic mapping

2. Define the interface for obtaining dynamic mapping


3. When getting dynamic , Get mapping information

add to : Processing image size



Project Closing (2022-6-3)
边栏推荐
- GBase 8a OLAP分析函数cume_dist的使用样例
- [LeetCode]513. 找树左下角的值
- Method of reading file contents by Excel
- Open source technology exchange - Introduction to Chengying, a one-stop fully automated operation and maintenance manager
- GBase 8a V8版本节点替换期间通过并发数控制资源使用减少对系统影响的方法
- Slow bear market, bit Store provides stable stacking products to help you cross the bull and bear
- [LeetCode]508. The most frequent subtree elements and
- Go从入门到实战——行为的定义和实现(笔记)
- Matlab finds the position of a row or column in the matrix
- Go从入门到实战——任务的取消(笔记)
猜你喜欢

GBase 8a的create database 会被查询耗时很长怀疑卡住的现象分析

美团20k软件测试工程师的经验分享

I think I should start writing my own blog.
![[MySQL] database function clearance Tutorial Part 2 (window function topic)](/img/03/2b37e63d0d482d5020b7421ac974cb.jpg)
[MySQL] database function clearance Tutorial Part 2 (window function topic)

win11桌面出现“了解此图片”如何删除

Go从入门到实战—— 多路选择和超时控制(笔记)
![[leetcode] dynamic programming solution partition array i[red fox]](/img/b2/df87c3138c28e83a8a58f80b2938b8.png)
[leetcode] dynamic programming solution partition array i[red fox]

Bit.Store:熊市漫漫,稳定Staking产品或成主旋律

读写分离-Mysql的主从复制

Go from introduction to actual combat -- channel closing and broadcasting (notes)
随机推荐
Simulink method for exporting FMU model files
GBase 8a数据库用户密码安全相关参数汇总
BAT测试专家对web测试和APP测试的总结
Little known MySQL import data
[LeetCode]572. 另一棵树的子树
Common problems encountered by burp Suite
TreeSet details
Oracle migration MySQL unique index case insensitive don't be afraid
鲜为人知的mysql导入数据
豆沙绿保护你的双眼
Express e stack - small items in array
STM32F107+LAN8720A使用STM32cubeMX配置网络连接+tcp主从机+UDP app
[leetcode] 508. Élément de sous - arbre le plus fréquent et
[LeetCode]508. 出現次數最多的子樹元素和
linux下安装oracle11g 静默安装教程
GBase 8a OLAP函数group by grouping sets的使用样例
Go从入门到实战—— 多路选择和超时控制(笔记)
Experience sharing of meituan 20K Software Test Engineers
洛谷P5706 再分肥宅水
Have time to look at ognl expressions