增 post 删 delete 改 put 查 get
http://localhost:8080/Account/login post
{
"username": "add",
"password": "add",
"number": ""
}
"code": "200",
"data": {
"username": "add",
"password": "add",
"number": ""
},
"msg": "成功"
}
post http://localhost:8080/Account/sendemail
{
"number": "xxxxxxx@qq.com"
}{
"code": "200",
"data": "发送成功",
"msg": "成功"
}post http://localhost:8080/Account/register
{
"username":"ad",
"password":"addd",
"number": "1017557616@qq.com",
"code":"asdfasda"
}
{
"code": "200",
"data": "注册成功",
"msg": "成功"
}http://localhost:8080/Account/login/findpassword/updatepassword
{
"username": "add",
"password": "add"
}{
"code": "404",
"data": null,
"msg": "用户名已存在"
}http://localhost:8080/Account/logout
{
"username": "add",
"password": "add"
}{
"code": "200",
"data": "退出成功",
"msg": "成功"
}http://localhost:8080/Article/insert
{
"title":"cpdd",
"content":"xxxxxx ",
"tags":"cao"
}{
"code": "200",
"data": "添加成功",
"msg": "成功"
}http://localhost:8080/Article/delete
{
"id":"2"
}```json
{
"code": "200",
"data": "删除成功",
"msg": "成功"
}
http://localhost:8080/Article/update
{
"id":"1",
"title":"cpd",
"content":"x ",
"tag":"cao"
}{
"code": "200",
"data": "更新成功",
"msg": "成功"
}http://localhost:8080/Article/select
{
"title":"cp"
}
{
"code": "200",
"data": [
{
"id": 3,
"title": "cpdd",
"content": "xxxxxx ",
"authorid": "1",
"publishDate": "2024-09-19T07:31:02.000+00:00",
"tags": null,
"likes": 0,
"views": 0
}
],
"msg": "成功"
}http://localhost:8080/Comments/insert
{
"articleId":"3",
"accountId":"1",
"commentText":"xxxxx"
}{
"code": "200",
"data": "评论成功",
"msg": "成功"
}http://localhost:8080/Comments/delete
{
"id":"1"
}{
"code": "200",
"data": "删除成功",
"msg": "成功"
}http://localhost:8080/Comments/select
{
"articleId":"1"
}{
"code": "200",
"data": null,
"msg": "成功"
}http://localhost:8080/Collect/insert
{
"accountId": "1",
"articleId":"3"
}{
"code": "200",
"data": "添加成功",
"msg": "成功"
}http://localhost:8080/Collect/delete
{
"collectId": "5"
}{
"code": "200",
"data": "删除成功",
"msg": "成功"
}http://localhost:8080/Collect/select
{
"accountId": "1"
}{
"code": "200",
"data": [
{
"collectId": null,
"accountId": 1,
"articleId": 3,
"collectDate": "2024-09-19T15:47:25.000+00:00"
},
{
"collectId": null,
"accountId": 1,
"articleId": 3,
"collectDate": "2024-09-19T15:51:11.000+00:00"
},
{
"collectId": null,
"accountId": 1,
"articleId": 3,
"collectDate": "2024-09-19T15:52:04.000+00:00"
},
{
"collectId": null,
"accountId": 1,
"articleId": 3,
"collectDate": "2024-09-19T15:52:47.000+00:00"
}
],
"msg": "成功"
}http://localhost:8080/History/insert
{
"accountId":"1",
"articleId":"3"
}{
"code": "200",
"data": "添加成功",
"msg": "成功"
}http://localhost:8080/History/delete
{
"id":"1"
}{
"code": "200",
"data": "删除成功",
"msg": "成功"
}http://localhost:8080/Collect/select
{
"accountId": "1"
}{
"code": "200",
"data": [
{
"id": null,
"accountId": 1,
"articleId": 3,
"actionTime": "2024-09-20T01:40:44.000+00:00"
}
],
"msg": "成功"
}http://localhost:8080/Collect/insert
{
"title":"cpdd",
"content":"xxxxxx ",
"tags":"cao"
}{
"code": "200",
"data": "添加成功",
"msg": "成功"
}http://localhost:8080/Tag/select
{
"tagName":"cao"
}{
"code": "200",
"data": [
{
"id": -1655685118,
"title": "cpdd",
"content": "xxxxxx ",
"authorid": "1",
"publishDate": "2024-09-20T14:21:01.000+00:00",
"tags": "cao",
"likes": 0,
"views": 0
},
{
"id": 22097921,
"title": "cpdd",
"content": "xxxxxx ",
"authorid": "1",
"publishDate": "2024-09-20T14:20:03.000+00:00",
"tags": "cao",
"likes": 0,
"views": 0
}
],
"msg": "成功"
}http://localhost:8080/Followers/insert
{
"fanid":"2",
"idolid":"1"
}{
"code": "200",
"data": "添加成功",
"msg": "成功"
}http://localhost:8080/Followers/delete
{
"fanid":"2",
"idolid":"1"
}{
"code": "200",
"data": "删除成功",
"msg": "成功"
}http://localhost:8080/Followers/select
{
"fanid":"2"
} {
"code": "200",
"data": [
{
"idolid": 1,
"fanid": 2,
"followdate": "2024-09-20T16:09:20.000+00:00"
}
],
"msg": "成功"
}