当前位置:网站首页>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)
边栏推荐
- 神奇的POI读取excel模板文件报错
- Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
- qt 大文件生成md5校验码
- Test automatique de Test logiciel - test d'interface de l'introduction à la maîtrise, apprendre un peu chaque jour
- Go from introduction to practice - polymorphism (note)
- 畅游动态规划之区间DP
- matlab查找某一行或者某一列在矩阵中的位置
- [LeetCode]100. 相同的树
- Go from starting to Real - Interface (note)
- Read write separation master-slave replication of MySQL
猜你喜欢

洛谷P5706 再分肥宅水

STM32F107+LAN8720A使用STM32cubeMX配置网络连接+tcp主从机+UDP app

真香,自从用了Charles,Fiddler已经被我彻底卸载了

Go從入門到實戰——接口(筆記)

Luogu p5706 redistributing fertilizer and house water

Experience sharing of meituan 20K Software Test Engineers

单元测试界的高富帅,Pytest框架,手把手教学,以后测试报告就这么做~

Go from introduction to practice -- coordination mechanism (note)

Go从入门到实战——仅执行一次(笔记)

AI painting minimalist tutorial
随机推荐
Go从入门到实战——接口(笔记)
Test automatique de Test logiciel - test d'interface de l'introduction à la maîtrise, apprendre un peu chaque jour
Dynamic refresh mapper
读写分离-Mysql的主从复制
清华大学教授:软件测试已经走入一个误区——“非代码不可”
List of language weaknesses --cwe, a website worth learning
AQS SOS AQS with me
[LeetCode]515. 在每个树行中找最大值
Go from introduction to practice - polymorphism (note)
【Redis】零基础十分钟学会Redis
TreeSet details
[LeetCode]508. The most frequent subtree elements and
分享|智慧环保-生态文明信息化解决方案(附PDF)
Go从入门到实战——依赖管理(笔记)
Go from entry to practice - multiple selection and timeout control (notes)
Go from introduction to actual combat - package (notes)
[LeetCode]513. 找树左下角的值
Tiktok's interest in e-commerce has hit the traffic ceiling?
Oracle migration MySQL unique index case insensitive don't be afraid
[LeetCode]动态规划解分割数组I[Red Fox]