当前位置:网站首页>Management system itclub (medium)
Management system itclub (medium)
2022-06-27 22:07:00 【Big eye (◉ ɷ ◉) cute】
Management system -ITclub( in )
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( in )
- Publish and modify dynamic content
- Define delete and query dynamic content
- Post and revise comments
- Delete and query comments
- √ Complete the dynamic and comment interface (2022-05-31)
Publish and modify dynamic content
Create a new table moment
Create table statement :
CREATE TABLE IF NOT EXISTS `moment`(
id INT PRIMARY KEY AUTO_INCREMENT,
content VARCHAR(1000) NOT NULL,
user_id INT NOT NULL,
createAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updateAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY(user_id) REFERENCES user(id)
);
Define interfaces for publishing dynamic content
1. Define the routing interface
2. Verify user login
3. Controller and Service Processing content in
√ Complete the release of dynamic interfaces (2022-5-27)
Define interfaces for modifying dynamic content
1. Define the routing interface
2. Verify user login (verifyAuth)
PS: A lot of content needs to be verified : modify / Delete dynamic , modify / Delete comments
Interface : Business interface system / Back end management system
- One to many :user—>role
- Many to many :role—>menu( Delete dynamic and modify dynamic )
3. Verify user rights (verifyPermission)
4. Controller and Service Processing in
Define delete and query dynamic content
Define an interface for deleting dynamic content
1. Define the routing interface
2. Verify user login and verify user permissions
See above (verifyAuth) and (verifyPermission)
3. Controller and Service Processing in
Define the interface of query content ( Single )
Define the interface for querying multiple contents ( list )
to update :2022-5-30
Post and revise comments
Create a new table comment
CREATE TABLE IF NOT EXISTS `comment`(
id INT PRIMARY KEY AUTO_INCREMENT,
content VARCHAR(1000) NOT NULL,
moment_id INT NOT NULL,
user_id INT NOT NULL,
comment_id INT DEFAULT NULL,
createAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updateAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY(moment_id) REFERENCES moment(id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY(comment_id) REFERENCES comment(id) ON DELETE CASCADE ON UPDATE CASCADE
);
Define the interface for publishing comments
1. Define the routing interface –> Verify user login
2. Controller and Service Processing content in
Define and modify the comment content interface
1. Define reason interface
2. Verify user login ( to update verifyPermission)
See above (verifyAuth)
3. Verify user rights
PS: It was originally encapsulated verifyPermission middleware , Now make some changes
The definition is more in line with RESTful Style interface code
4. Controller and Service Processing content in
Define the interface for replying to comments
1. Define the routing interface
2. Verify user login
See above (verifyAuth)
3. Controller and Service Processing content in
Delete and query comments
Define the interface for deleting comments
1. Define the routing interface
2. Verify user login and verify user permissions
3. Controller and Service Processing content in
When querying dynamic , Also show comments
1. When querying multiple dynamic , Show the number of comments
2. When querying a single dynamic , Show a list of comments
√ Complete the dynamic and comment interface (2022-05-31)
PS: The article will continue in the future ( Next )
边栏推荐
- Installing Oracle11g under Linux
- Knowledge sorting of exception handling
- Test automatique de Test logiciel - test d'interface de l'introduction à la maîtrise, apprendre un peu chaque jour
- MONTHS_BETWEEN函数使用
- [LeetCode]513. 找树左下角的值
- How to do function test well? Are you sure you don't want to know?
- C语言程序设计详细版 (学习笔记1) 看完不懂,我也没办法。
- regular expression
- Use Fiddler to simulate weak network test (2g/3g)
- Matlab finds the position of a row or column in the matrix
猜你喜欢
不外泄的测试用例设计秘籍--模块测试
美团20k软件测试工程师的经验分享
Exclusive interview with millions of annual salary. What should developers do if they don't fix bugs?
Fill in the blank of rich text test
真香,自从用了Charles,Fiddler已经被我彻底卸载了
I think I should start writing my own blog.
Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app
Professor of Tsinghua University: software testing has gone into a misunderstanding - "code is necessary"
Codeforces Round #719 (Div. 3)
Common problems encountered by burp Suite
随机推荐
Use Fiddler to simulate weak network test (2g/3g)
[LeetCode]动态规划解分割数组II[Arctic Fox]
软件测试自动化测试之——接口测试从入门到精通,每天学习一点点
Management system itclub (Part 2)
Fill in the blank of rich text test
MYSQL和MongoDB的分析
Matlab finds the position of a row or column in the matrix
Set code exercise
Codeforces Round #719 (Div. 3)
Have time to look at ognl expressions
Golang uses regularity to match substring functions
开源技术交流丨一站式全自动化运维管家ChengYing入门介绍
[LeetCode]161. Edit distance of 1
Luogu p5706 redistributing fertilizer and house water
[LeetCode]515. 在每个树行中找最大值
Bit. Store: long bear market, stable stacking products may become the main theme
\W and [a-za-z0-9_], \Are D and [0-9] equivalent?
管理系统-ITclub(中)
Codeforces Round #716 (Div. 2)
gomock mockgen : unknown embedded interface