- User
- Category
- Comment
- Collection
- Articles
- Likes
Like Find By ID
POST
/likeArticle/findById
责任人:Chen Yang
请求参数
Query 参数
id
integer
Like Id
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/likeArticle/findById?id='
返回响应
🟢200Success
application/json
Body
code
integer
必需
data
object
必需
rows
array [object {8}]
必需
count
integer
必需
示例
{
"code": 0,
"data": {
"rows": [
{
"id": 0,
"userId": 0,
"articleId": 0,
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null,
"user": {
"id": 0,
"name": "string",
"username": "string",
"password": "string",
"avatar": "string",
"desc": "string",
"roleId": 0,
"weight": 0,
"age": 0,
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null,
"role": {
"id": 0,
"name": "string",
"desc": "string",
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null
}
},
"article": {
"id": 0,
"name": "string",
"content": "string",
"desc": "string",
"userId": 0,
"avatar": "string",
"categoryId": 0,
"type": null,
"imgs": null,
"frameID": "string",
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null,
"category": {
"id": 0,
"name": "string",
"date": "string",
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null
},
"user": {
"id": 0,
"name": "string",
"username": "string",
"password": "string",
"avatar": "string",
"desc": "string",
"roleId": 0,
"weight": 0,
"age": 0,
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null,
"role": {
"id": 0,
"name": "string",
"desc": "string",
"createdAt": "string",
"updatedAt": "string",
"deletedAt": null
}
}
}
}
],
"count": 0
}
}
🔴500Failed