添加友情链接
开发中
POST
http://localhost:8098/admin/link
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
displayName
string
链接名称
<= 128 字符
url
string
链接地址
<= 512 字符
logo
string | null
LOGO 地址
<= 512 字符
description
string | null
描述
<= 512 字符
priority
integer | null
优先级
>= 0<= 100
默认值:
0
remark
string | null
备注
<= 256 字符
isLost
boolean | null
是否已失联
默认值:
false
示例
{
"displayName": "string",
"url": "string",
"logo": "string",
"description": "string",
"priority": 0,
"remark": "string",
"isLost": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8098/admin/link' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
null
必需
data
object
必需
linkId
integer
友情链接 ID
displayName
string
连接名称
url
string
链接地址
logo
string | null
LOGO 地址
description
string | null
描述
priority
integer
优先级
>= 0<= 100
默认值:
0
remark
string | null
备注
createTime
integer
创建时间戳
lastModifyTime
integer | null
最后修改时间戳
示例
{
"code": 200,
"errMsg": null,
"data": {
"linkId": 2,
"displayName": "这路过由提美教",
"url": "http://evlpjniwog.cn/clvuiok",
"logo": null,
"description": null,
"priority": 0,
"remark": null,
"createTime": 1709387722031,
"lastModifyTime": null
}
}
修改于 2025-04-03 08:58:18