Skip to main content
Version: 中文

Spring Boot IceCMS API V3.4

简介:Spring Boot IceCMS API V3.4

HOST:127.0.0.1:8181

联系人:

Version:3.4

接口路径:/v2/api-docs?group=前端分组

[TOC]

Mini接口

获取重要文章

接口地址:/Mini/GetArticleBtmatter

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKArticleVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorIdinteger(int32)integer(int32)
authorNamestring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
keywordstring
loveNuminteger(int32)integer(int32)
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}
]

根据别名获取全部圈子(分页)

接口地址:/Mini/getAllSquare/{id}/{page}/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtrueinteger(int32)
limitlimitpathtrueinteger(int32)
otherNameotherNametruestring
pagepagepathtrueinteger(int32)

响应状态:

状态码说明schema
200OKSquarePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarraySquareVO
addTime创建时间string
authorstring
authorImgstring
commentDisabledstring
commentNuminteger(int32)
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)
hitsinteger(int32)
httpUrlstring
idinteger(int32)
imagestring
inputerstring
iseliteinteger(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)
mediastring
ontopinteger(int32)
postNuminteger(int32)
sortClassstring
sortNamestring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)
typeinteger(int32)
updateTime更新时间string
useridinteger(int32)
pagesinteger(int64)integer(int64)
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorImg": "",
"commentDisabled": "",
"commentNum": 0,
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"hits": 0,
"httpUrl": "",
"id": 0,
"image": "",
"inputer": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"media": "",
"ontop": 0,
"postNum": 0,
"sortClass": "",
"sortName": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"type": 0,
"updateTime": "",
"userid": 0
}
],
"pages": 0,
"total": 0
}

根据id获取文章内容

接口地址:/Mini/getArticleById/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id文章idpathtruestring

响应状态:

状态码说明schema
200OKArticleVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorIdinteger(int32)integer(int32)
authorNamestring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
keywordstring
loveNuminteger(int32)integer(int32)
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring

响应示例:

{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}

获取首页轮播图

接口地址:/Mini/getCarousel

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKMap«string,object»
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取最新资源列表

接口地址:/Mini/getNewResource/{resourceNum}/{filter}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleNum数量truestring
filterfilterpathtruestring
resourceNumresourceNumpathtrueinteger(int32)

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

根据id获取资源内容

接口地址:/Mini/getResourceById/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id资源idpathtruestring

响应状态:

状态码说明schema
200OKResource
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
authorIdinteger(int32)integer(int32)
carouselstring
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
isFreeinteger(int32)integer(int32)
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
pricestring
resAddressstring
resPasswordstring
resourceStatusinteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string
videoAddressstring

响应示例:

{
"addTime": "",
"authorId": 0,
"carousel": "",
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"isFree": 0,
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": 0,
"postNum": 0,
"price": "",
"resAddress": "",
"resPassword": "",
"resourceStatus": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": "",
"videoAddress": ""
}

获取全部分类列表

接口地址:/Mini/getSquareClasslist

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKSquareClass
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
describesstring
fatherinteger(int32)integer(int32)
idinteger(int32)integer(int32)
imgclassstring
isFreeboolean
namestring
numinteger(int32)integer(int32)
otherNamestring
priceinteger(int32)integer(int32)
topboolean

响应示例:

[
{
"describes": "",
"father": 0,
"id": 0,
"imgclass": "",
"isFree": true,
"name": "",
"num": 0,
"otherName": "",
"price": 0,
"top": true
}
]

Web信息接口

获取聊天记录

接口地址:/WebchatMessages/getChatMessages/{sender}/{receiver}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
receiverreceiverpathtrueinteger(int32)
sendersenderpathtrueinteger(int32)

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取聊天好友列表

接口地址:/WebchatMessages/getMessageList/{userid}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
useriduseridpathtrueinteger(int32)

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


发送聊天消息

接口地址:/WebchatMessages/sendChatMessage/{sender}/{receiver}/{message}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
messagemessagepathtruestring
receiverreceiverpathtrueinteger(int32)
sendersenderpathtrueinteger(int32)

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


Web公告接口

获取全部公告列表

接口地址:/WebAnnouncements/getAnnouncementslist

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKAnnouncements
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
authorstring
contentstring
created创建时间string
idinteger(int32)integer(int32)
isActiveinteger(int32)integer(int32)
titlestring
updated更新时间string

响应示例:

[
{
"author": "",
"content": "",
"created": "",
"id": 0,
"isActive": 0,
"title": "",
"updated": ""
}
]

获取指定数量的公告列表

接口地址:/WebAnnouncements/getAnnouncementslistByNum/{num}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
numnumpathtrueinteger(int32)

响应状态:

状态码说明schema
200OKAnnouncements
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
authorstring
contentstring
created创建时间string
idinteger(int32)integer(int32)
isActiveinteger(int32)integer(int32)
titlestring
updated更新时间string

响应示例:

[
{
"author": "",
"content": "",
"created": "",
"id": 0,
"isActive": 0,
"title": "",
"updated": ""
}
]

Web圈子分类接口

根据分类id获取分类信息

接口地址:/WebaSquareClass/getArticleClassByotherName/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtrueinteger(int32)
otherNameotherNametruestring

响应状态:

状态码说明schema
200OKSquareClass
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
describesstring
fatherinteger(int32)integer(int32)
idinteger(int32)integer(int32)
imgclassstring
isFreeboolean
namestring
numinteger(int32)integer(int32)
otherNamestring
priceinteger(int32)integer(int32)
topboolean

响应示例:

{
"describes": "",
"father": 0,
"id": 0,
"imgclass": "",
"isFree": true,
"name": "",
"num": 0,
"otherName": "",
"price": 0,
"top": true
}

根据分类id获取文章数量

接口地址:/WebaSquareClass/getArticleClassNum/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取全部分类列表

接口地址:/WebaSquareClass/getSquareClasslist

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKSquareClass
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
describesstring
fatherinteger(int32)integer(int32)
idinteger(int32)integer(int32)
imgclassstring
isFreeboolean
namestring
numinteger(int32)integer(int32)
otherNamestring
priceinteger(int32)integer(int32)
topboolean

响应示例:

[
{
"describes": "",
"father": 0,
"id": 0,
"imgclass": "",
"isFree": true,
"name": "",
"num": 0,
"otherName": "",
"price": 0,
"top": true
}
]

Web圈子广场接口

新增圈子

接口地址:/Websquare/create

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
square圈子对象bodytruestring

响应状态:

状态码说明schema
200OK
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据别名获取全部圈子(分页)

接口地址:/Websquare/getAllSquare/{id}/{page}/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtrueinteger(int32)
limitlimitpathtrueinteger(int32)
otherNameotherNametruestring
pagepagepathtrueinteger(int32)
typetypequeryfalsestring

响应状态:

状态码说明schema
200OKSquarePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarraySquareVO
addTime创建时间string
authorstring
authorImgstring
commentDisabledstring
commentNuminteger(int32)
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)
hitsinteger(int32)
httpUrlstring
idinteger(int32)
imagestring
inputerstring
iseliteinteger(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)
mediastring
ontopinteger(int32)
postNuminteger(int32)
sortClassstring
sortNamestring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)
typeinteger(int32)
updateTime更新时间string
useridinteger(int32)
pagesinteger(int64)integer(int64)
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorImg": "",
"commentDisabled": "",
"commentNum": 0,
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"hits": 0,
"httpUrl": "",
"id": 0,
"image": "",
"inputer": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"media": "",
"ontop": 0,
"postNum": 0,
"sortClass": "",
"sortName": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"type": 0,
"updateTime": "",
"userid": 0
}
],
"pages": 0,
"total": 0
}

根据id获取圈子内容

接口地址:/Websquare/getSquareById/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id圈子idpathtruestring

响应状态:

状态码说明schema
200OKSquareVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
authorstring
authorImgstring
commentDisabledstring
commentNuminteger(int32)integer(int32)
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
hitsinteger(int32)integer(int32)
httpUrlstring
idinteger(int32)integer(int32)
imagestring
inputerstring
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
mediastring
ontopinteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
sortClassstring
sortNamestring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
typeinteger(int32)integer(int32)
updateTime更新时间string
useridinteger(int32)integer(int32)

响应示例:

{
"addTime": "",
"author": "",
"authorImg": "",
"commentDisabled": "",
"commentNum": 0,
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"hits": 0,
"httpUrl": "",
"id": 0,
"image": "",
"inputer": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"media": "",
"ontop": 0,
"postNum": 0,
"sortClass": "",
"sortName": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"type": 0,
"updateTime": "",
"userid": 0
}

评论点赞

接口地址:/Websquare/likeClickComment/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id评论idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


Web圈子评论接口

增加评论

接口地址:/WebSquareComment/addPlanetComment

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求示例:

{
"addTime": "",
"content": "",
"id": 0,
"loveNum": 0,
"parentId": 0,
"postId": 0,
"profile": "",
"responder": "",
"responderId": 0,
"reviewers": "",
"reviewersId": 0,
"status": 0,
"toUserId": 0,
"type": 0,
"userId": 0
}

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
PlanetComment评论分类对象truestring
SquareCommentSquareCommentbodytrueSquareCommentSquareComment
addTime创建时间falsestring
contentfalsestring
idfalseinteger(int32)
loveNumfalseinteger(int32)
parentIdfalseinteger(int32)
postIdfalseinteger(int32)
profilefalsestring
responderfalsestring
responderIdfalseinteger(int32)
reviewersfalsestring
reviewersIdfalseinteger(int32)
statusfalseinteger(int32)
toUserIdfalseinteger(int32)
typefalseinteger(int32)
userIdfalseinteger(int32)

响应状态:

状态码说明schema
200OK
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据文章id查看对应评论数

接口地址:/WebSquareComment/getPlanetCommentnum/{planetId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
planetId评论idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据文章id查询评论

接口地址:/WebSquareComment/getPlanetIdComment/{postId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
postIdpostIdpathtruestring

响应状态:

状态码说明schema
200OKSquareCommentVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
contentstring
idinteger(int32)integer(int32)
loveNuminteger(int32)integer(int32)
parentIdinteger(int32)integer(int32)
postIdinteger(int32)integer(int32)
profilestring
replyarraySquareComment
addTime创建时间string
contentstring
idinteger(int32)
loveNuminteger(int32)
parentIdinteger(int32)
postIdinteger(int32)
profilestring
responderstring
responderIdinteger(int32)
reviewersstring
reviewersIdinteger(int32)
statusinteger(int32)
toUserIdinteger(int32)
typeinteger(int32)
userIdinteger(int32)
responderstring
responderIdinteger(int32)integer(int32)
reviewersstring
reviewersIdinteger(int32)integer(int32)
statusinteger(int32)integer(int32)
toUserIdinteger(int32)integer(int32)
userIdinteger(int32)integer(int32)

响应示例:

[
{
"addTime": "",
"content": "",
"id": 0,
"loveNum": 0,
"parentId": 0,
"postId": 0,
"profile": "",
"reply": [
{
"addTime": "",
"content": "",
"id": 0,
"loveNum": 0,
"parentId": 0,
"postId": 0,
"profile": "",
"responder": "",
"responderId": 0,
"reviewers": "",
"reviewersId": 0,
"status": 0,
"toUserId": 0,
"type": 0,
"userId": 0
}
],
"responder": "",
"responderId": 0,
"reviewers": "",
"reviewersId": 0,
"status": 0,
"toUserId": 0,
"userId": 0
}
]

评论点赞

接口地址:/WebSquareComment/likeClickComment/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id评论idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


Web文章分类接口

根据分类id获取文章数量

接口地址:/WebarticleClass/getArticleClassNum/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取全部分类列表

接口地址:/WebarticleClass/getArticleClasslist

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKArticleClass
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
describesstring
fatherinteger(int32)integer(int32)
idinteger(int32)integer(int32)
imgclassstring
namestring
numinteger(int32)integer(int32)
otherNamestring
topboolean

响应示例:

[
{
"describes": "",
"father": 0,
"id": 0,
"imgclass": "",
"name": "",
"num": 0,
"otherName": "",
"top": true
}
]

Web文章接口

查询文章(分页)

接口地址:/WebArticle/FindAllArticle/{content}/{page}/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
content内容pathtruestring
limit总量pathtruestring
page页数pathtruestring

响应状态:

状态码说明schema
200OKArticlePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayArticleVO
addTimestring(date-time)
authorIdinteger(int32)
authorNamestring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
keywordstring
loveNuminteger(int32)
ownerTaginteger(int32)
postNuminteger(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring
pagesinteger(int64)integer(int64)
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}
],
"pages": 0,
"total": 0
}

根据作者name查询对应头像

接口地址:/WebArticle/FindProfileByName/{name}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
name作者名称pathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取重要文章

接口地址:/WebArticle/GetArticleBtmatter

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKArticleVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorIdinteger(int32)integer(int32)
authorNamestring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
keywordstring
loveNuminteger(int32)integer(int32)
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}
]

统计文章喜欢量+1

接口地址:/WebArticle/articles/{id}/love

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id文章idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


统计文章浏览量+1

接口地址:/WebArticle/articles/{id}/view

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id文章idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


文章查询(全部)

接口地址:/WebArticle/findarticles/{content}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
content模糊查询标题pathtruestring

响应状态:

状态码说明schema
200OKArticle
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
articleStatusinteger(int32)integer(int32)
authorIdinteger(int32)integer(int32)
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTagstring
postNuminteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string

响应示例:

[
{
"addTime": "",
"articleStatus": 0,
"authorId": 0,
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": "",
"postNum": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": ""
}
]

文章查询(预览)

接口地址:/WebArticle/findarticlesbynum/{content}/{num}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
content模糊查询标题pathtruestring
numnumpathtruestring

响应状态:

状态码说明schema
200OKArticle
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
articleStatusinteger(int32)integer(int32)
authorIdinteger(int32)integer(int32)
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTagstring
postNuminteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string

响应示例:

[
{
"addTime": "",
"articleStatus": 0,
"authorId": 0,
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": "",
"postNum": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": ""
}
]

获取全部文章列表(分页)

接口地址:/WebArticle/getAllArticle/{page}/{limit}/{click}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
clickclickpathtrueinteger(int32)
limit总量pathtruestring
page页数pathtruestring

响应状态:

状态码说明schema
200OKArticlePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayArticleVO
addTimestring(date-time)
authorIdinteger(int32)
authorNamestring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
keywordstring
loveNuminteger(int32)
ownerTaginteger(int32)
postNuminteger(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring
pagesinteger(int64)integer(int64)
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}
],
"pages": 0,
"total": 0
}

获取所有文章数量

接口地址:/WebArticle/getAllArticleNumber

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据author获取文章

接口地址:/WebArticle/getAllArticlebyAuthor/{author}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
authorauthorpathtruestring

响应状态:

状态码说明schema
200OKArticle
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
articleStatusinteger(int32)integer(int32)
authorIdinteger(int32)integer(int32)
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTagstring
postNuminteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string

响应示例:

[
{
"addTime": "",
"articleStatus": 0,
"authorId": 0,
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": "",
"postNum": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": ""
}
]

根据id获取文章内容

接口地址:/WebArticle/getArticleById/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id文章idpathtruestring

响应状态:

状态码说明schema
200OKArticleContentVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorIdinteger(int32)integer(int32)
authorNamestring
classNamestring
commentNuminteger(int32)integer(int32)
contentstring
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
keywordstring
loveNuminteger(int32)integer(int32)
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring

响应示例:

{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"content": "",
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}

获取文章下一页(标题)

接口地址:/WebArticle/getLastnewsArticle/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取最新文章列表

接口地址:/WebArticle/getNewArticle/{articleNum}/{check}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleNum数量pathtruestring
check条件pathtruestring

响应状态:

状态码说明schema
200OKArticleVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorIdinteger(int32)integer(int32)
authorNamestring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
keywordstring
loveNuminteger(int32)integer(int32)
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
profilestring
sortClassstring
statusstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"authorId": 0,
"authorName": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"keyword": "",
"loveNum": 0,
"ownerTag": 0,
"postNum": 0,
"profile": "",
"sortClass": "",
"status": "",
"thumb": "",
"title": ""
}
]

获取文章上一页(标题)

接口地址:/WebArticle/getPrenewsArticle/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


Web文章评论接口

增加评论

接口地址:/WebArticleComment/addArticleComment

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleComment文章分类对象bodytruestring

响应状态:

状态码说明schema
200OK
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


查看文章对应评论数

接口地址:/WebArticleComment/getArticleCommentnum/{articleId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleId文章idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


最新评论

接口地址:/WebArticleComment/getNewArticleComment/{num}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
num数量pathtruestring

响应状态:

状态码说明schema
200OKArticleCommentVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
articleIdinteger(int32)integer(int32)
articleNamestring
contentstring
emailstring
foreignIdinteger(int32)integer(int32)
idinteger(int32)integer(int32)
parentIdinteger(int32)integer(int32)
profilestring
userIdinteger(int32)integer(int32)
usernamestring

响应示例:

[
{
"addTime": "",
"articleId": 0,
"articleName": "",
"content": "",
"email": "",
"foreignId": 0,
"id": 0,
"parentId": 0,
"profile": "",
"userId": 0,
"username": ""
}
]

根据文章id查询对应的评论

接口地址:/WebArticleComment/getallArticleComment/{articleId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleId文章idpathtruestring

响应状态:

状态码说明schema
200OKArticleComment
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
articleIdinteger(int32)integer(int32)
contentstring
emailstring
foreignIdinteger(int32)integer(int32)
idinteger(int32)integer(int32)
parentIdinteger(int32)integer(int32)
profilestring
userIdinteger(int32)integer(int32)
usernamestring

响应示例:

[
{
"addTime": "",
"articleId": 0,
"content": "",
"email": "",
"foreignId": 0,
"id": 0,
"parentId": 0,
"profile": "",
"userId": 0,
"username": ""
}
]

Web标签接口

获取全部tag

接口地址:/WebTag/getAllTag

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKAllTag
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
colorstring
effectstring
idinteger(int32)integer(int32)
tagNamestring

响应示例:

[
{
"color": "",
"effect": "",
"id": 0,
"tagName": ""
}
]

根据id获取tag名称

接口地址:/WebTag/getTagByList/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtrueinteger(int32)

响应状态:

状态码说明schema
200OKAllTag
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
colorstring
effectstring
idinteger(int32)integer(int32)
tagNamestring

响应示例:

{
"color": "",
"effect": "",
"id": 0,
"tagName": ""
}

Web用户接口

修改密码

接口地址:/Websuser/ChangePassword/{jwt}/{yuanPassWord}/{NewPassWord}/{userid}

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
NewPassWord新密码pathtruestring
jwtjwtpathtruestring
userid用户idpathtruestring
yuanPassWord原密码pathtruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

修改用户信息

接口地址:/Websuser/ChangeUser

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求示例:

{
"academic": "",
"birthday": "",
"createTime": "",
"email": "",
"gender": 0,
"height": "",
"integral": 0,
"intro": "",
"lastLogin": "",
"monthly": "",
"name": "",
"openid": "",
"password": "",
"permanent": "",
"phone": "",
"profile": "",
"role": "",
"status": 0,
"userId": 0,
"userage": 0,
"username": "",
"vipDisableTip": true,
"vipExpireDate": "",
"vipValidDate": ""
}

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
useruserbodytrueUserUser
academicfalsestring
birthdayfalsestring
createTime生成时间falsestring
emailfalsestring
genderfalseinteger(int32)
heightfalsestring
integralfalseinteger(int32)
introfalsestring
lastLoginfalsestring(date-time)
monthlyfalsestring
namefalsestring
openidfalsestring
passwordfalsestring
permanentfalsestring
phonefalsestring
profilefalsestring
rolefalsestring
statusfalseinteger(int32)
userIdfalseinteger(int32)
useragefalseinteger(int32)
usernamefalsestring
vipDisableTipfalseboolean
vipExpireDatefalsestring(date-time)
vipValidDatefalsestring(date-time)

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

根据用户名判断是否是管理员

接口地址:/Websuser/CheckAdmin/{userid}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
userid用户名idpathtruestring

响应状态:

状态码说明schema
200OKResult
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

注册账号

接口地址:/Websuser/Create

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
password密码querytruestring
username用户名querytruestring
academic学历queryfalsestring
birthday生日queryfalsestring(date)
createTime生成时间queryfalsestring(date-time)
email邮箱queryfalsestring
gender性别queryfalsestring
height身高queryfalseref
integralqueryfalseinteger(int32)
introqueryfalsestring
lastLoginqueryfalsestring(date-time)
monthly月收入queryfalsestring
name姓名queryfalsestring
openidqueryfalsestring
permanent永久地址queryfalsestring
phonequeryfalsestring
profilequeryfalsestring
rolequeryfalsestring
status验证码状态queryfalseref
userIdqueryfalseinteger(int32)
userage年龄queryfalseref
vipDisableTipqueryfalseboolean
vipExpireDatequeryfalsestring(date-time)
vipValidDatequeryfalsestring(date-time)

响应状态:

状态码说明schema
200OKResult
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

微信登录注册

接口地址:/Websuser/CreateWeChatLogin

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
codecodequerytruestring
scenescenequerytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

邮箱找回密码

接口地址:/Websuser/FindPassword

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
code验证码querytruestring
email邮箱querytruestring
password新密码querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

手机号找回密码

接口地址:/Websuser/FindPasswordPhone

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
code验证码querytruestring
password新密码querytruestring
phone手机号querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

找回密码发送手机号验证码

接口地址:/Websuser/FindPasswordSendCode

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
email邮箱querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

找回密码发送邮箱验证码

接口地址:/Websuser/FindPasswordSendEmail

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
email邮箱querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

短信登录

接口地址:/Websuser/Messagelogin/{phone}

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
phone手机号querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

短信登录验证

接口地址:/Websuser/MessageloginCheck/{phone}/{code}

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
code验证码querytruestring
phone手机号querytruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

微信登录

接口地址:/Websuser/WeChatLogin

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

微信登录验证

接口地址:/Websuser/WeChatLoginCheck/{scene}

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
scenescenepathtruestring

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

获取当前登录用户的详细信息

接口地址:/Websuser/getCurrentUserInfo

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
AuthorizationAuthorizationheaderfalsestring

响应状态:

状态码说明schema
200OKResult
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

获取当前用户的订单信息

接口地址:/Websuser/getCurrentUserOrders

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
AuthorizationAuthorizationheaderfalsestring
limit每页数量queryfalseinteger(int32)
page页码queryfalseinteger(int32)

响应状态:

状态码说明schema
200OKResult
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

根据id获取用户信息

接口地址:/Websuser/getUserInfobyid/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


登录

接口地址:/Websuser/login

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
password密码querytruestring
username用户名querytruestring
academicqueryfalsestring
birthdayqueryfalsestring
createTime生成时间queryfalsestring(date-time)
emailqueryfalsestring
genderqueryfalseinteger(int32)
heightqueryfalsestring
integralqueryfalseinteger(int32)
introqueryfalsestring
lastLoginqueryfalsestring(date-time)
monthlyqueryfalsestring
namequeryfalsestring
openidqueryfalsestring
permanentqueryfalsestring
phonequeryfalsestring
profilequeryfalsestring
rolequeryfalsestring
statusqueryfalseinteger(int32)
userIdqueryfalseinteger(int32)
useragequeryfalseinteger(int32)
vipDisableTipqueryfalseboolean
vipExpireDatequeryfalsestring(date-time)
vipValidDatequeryfalsestring(date-time)

响应状态:

状态码说明schema
200OKResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

邮箱验证

接口地址:/Websuser/testemail/{email}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
emailemailpathtruestring

响应状态:

状态码说明schema
200OKResult
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
dataobject
msgstring

响应示例:

{
"code": 0,
"data": {},
"msg": ""
}

Web设置接口

获取首页轮播图

接口地址:/WebSitting/getCarousel

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKDispositionCarousel
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
buttonstring
idinteger(int32)integer(int32)
imgstring
introducestring
titlestring

响应示例:

[
{
"button": "",
"id": 0,
"img": "",
"introduce": "",
"title": ""
}
]

获取首页四大金刚

接口地址:/WebSitting/getFourKingKong

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKHomeSetting
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
colorLeftstring
colorRightstring
featureEnabledstring
featureSrcstring
featureTitlestring
idinteger(int32)integer(int32)

响应示例:

[
{
"colorLeft": "",
"colorRight": "",
"featureEnabled": "",
"featureSrc": "",
"featureTitle": "",
"id": 0
}
]

获取所有设置

接口地址:/WebSitting/getSetting

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKSetting
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
banquanstring
beianstring
comment_showboolean
h5Showboolean
idinteger(int32)integer(int32)
imageFormatboolean
sitLogostring
sitSrcstring
sitTitlestring

响应示例:

{
"banquan": "",
"beian": "",
"comment_show": true,
"h5Show": true,
"id": 0,
"imageFormat": true,
"sitLogo": "",
"sitSrc": "",
"sitTitle": ""
}

Web资源分类接口

根据classid查询对应的资源分类名称

接口地址:/WebResourceClass/getResourceClassNameByid/{classId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
classId分类idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取全部资源分类列表

接口地址:/WebResourceClass/getResourceClasslist

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKResourceClass
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
describesstring
fatherinteger(int32)integer(int32)
idinteger(int32)integer(int32)
imgclassstring
namestring
numinteger(int32)integer(int32)
otherNamestring
topboolean

响应示例:

[
{
"describes": "",
"father": 0,
"id": 0,
"imgclass": "",
"name": "",
"num": 0,
"otherName": "",
"top": true
}
]

Web资源接口

查询资源(分页)

接口地址:/WebResource/FindAllResource/{content}/{page}/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
content内容pathtruestring
limit总量pathtruestring
page页数pathtruestring

响应状态:

状态码说明schema
200OKResourcePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayResourceVO
addTimestring(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
ownerTaginteger(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
],
"total": 0
}

资源查询(预览)

接口地址:/WebResource/findresourcebynum/{content}/{num}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
content内容pathtruestring
num总量pathtruestring

响应状态:

状态码说明schema
200OKResource
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
authorIdinteger(int32)integer(int32)
carouselstring
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
isFreeinteger(int32)integer(int32)
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
pricestring
resAddressstring
resPasswordstring
resourceStatusinteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string
videoAddressstring

响应示例:

[
{
"addTime": "",
"authorId": 0,
"carousel": "",
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"isFree": 0,
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": 0,
"postNum": 0,
"price": "",
"resAddress": "",
"resPassword": "",
"resourceStatus": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": "",
"videoAddress": ""
}
]

获取全部资源列表(分页)

接口地址:/WebResource/getAllResource/{page}/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
limit总量pathtruestring
page页数pathtruestring

响应状态:

状态码说明schema
200OKResourcePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayResourceVO
addTimestring(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
ownerTaginteger(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
],
"total": 0
}

获取所有资源数量

接口地址:/WebResource/getAllResourceNumber

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据author获取资源

接口地址:/WebResource/getAllResourcebyAuthor/{author}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
authorauthorpathtruestring

响应状态:

状态码说明schema
200OKResource
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
authorIdinteger(int32)integer(int32)
carouselstring
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
isFreeinteger(int32)integer(int32)
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
pricestring
resAddressstring
resPasswordstring
resourceStatusinteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string
videoAddressstring

响应示例:

[
{
"addTime": "",
"authorId": 0,
"carousel": "",
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"isFree": 0,
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": 0,
"postNum": 0,
"price": "",
"resAddress": "",
"resPassword": "",
"resourceStatus": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": "",
"videoAddress": ""
}
]

获取热门资源

接口地址:/WebResource/getHotResources/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
limit获取数量pathtruestring

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

获取文章下一页(标题)

接口地址:/WebResource/getLastnewsResource/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取最新资源

接口地址:/WebResource/getLatestResources/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
limit获取数量pathtruestring

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

获取最新资源列表

接口地址:/WebResource/getNewResource/{resourceNum}/{filter}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
articleNum数量truestring
filterfilterpathtruestring
resourceNumresourceNumpathtrueinteger(int32)

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

获取文章上一页(标题)

接口地址:/WebResource/getPrenewsResource/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
ididpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


获取相关推荐资源

接口地址:/WebResource/getRecommendedResources/{limit}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
limit获取数量pathtruestring
classId分类ID(可选)queryfalsestring

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

根据分类ID和类型获取资源

接口地址:/WebResource/getResourceByClassAndType/{page}/{limit}/{classId}/{type}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
classId分类IDpathtruestring
limit每页数量pathtruestring
page页数pathtruestring
type类型:new(最新)、hot(下载量)、commend(评论数)、like(喜欢数)、recommend(推荐)pathtruestring

响应状态:

状态码说明schema
200OKResourcePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayResourceVO
addTimestring(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
ownerTaginteger(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
],
"total": 0
}

根据分类id获取资源内容

接口地址:/WebResource/getResourceByClassId/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id分类idpathtruestring

响应状态:

状态码说明schema
200OKResourceVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTimestring(date-time)string(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)integer(int32)
createTimestring(date-time)string(date-time)
hitsinteger(int32)integer(int32)
idinteger(int32)integer(int32)
introstring
ownerTaginteger(int32)integer(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring

响应示例:

[
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
]

根据id获取资源内容

接口地址:/WebResource/getResourceById/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id资源idpathtruestring

响应状态:

状态码说明schema
200OKResource
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
authorIdinteger(int32)integer(int32)
carouselstring
commentDisabledstring
contentstring
copyfromstring
createTime生成时间string
deletedinteger(int32)integer(int32)
filePathstring
fullTitlestring
hitsinteger(int32)integer(int32)
htmlPathstring
httpUrlstring
idinteger(int32)integer(int32)
inputerstring
introstring
isFreeinteger(int32)integer(int32)
iseliteinteger(int32)integer(int32)
keywordstring
lastPost最后评论时间string
loveNuminteger(int32)integer(int32)
ontopinteger(int32)integer(int32)
ownerRemarkstring
ownerTaginteger(int32)integer(int32)
postNuminteger(int32)integer(int32)
pricestring
resAddressstring
resPasswordstring
resourceStatusinteger(int32)integer(int32)
sortClassinteger(int32)integer(int32)
statusstring
subheadstring
tempPathstring
thumbstring
titlestring
titleColorstring
titlefontSizestring
titlefontTypeinteger(int32)integer(int32)
updateTime更新时间string
videoAddressstring

响应示例:

{
"addTime": "",
"authorId": 0,
"carousel": "",
"commentDisabled": "",
"content": "",
"copyfrom": "",
"createTime": "",
"deleted": 0,
"filePath": "",
"fullTitle": "",
"hits": 0,
"htmlPath": "",
"httpUrl": "",
"id": 0,
"inputer": "",
"intro": "",
"isFree": 0,
"iselite": 0,
"keyword": "",
"lastPost": "",
"loveNum": 0,
"ontop": 0,
"ownerRemark": "",
"ownerTag": 0,
"postNum": 0,
"price": "",
"resAddress": "",
"resPassword": "",
"resourceStatus": 0,
"sortClass": 0,
"status": "",
"subhead": "",
"tempPath": "",
"thumb": "",
"title": "",
"titleColor": "",
"titlefontSize": "",
"titlefontType": 0,
"updateTime": "",
"videoAddress": ""
}

根据类型获取资源

接口地址:/WebResource/getResourceByType/{page}/{limit}/{type}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
limit每页数量pathtruestring
page页数pathtruestring
type类型:new(最新)、hot(下载量)、commend(评论数)、like(喜欢数)、recommend(推荐)pathtruestring

响应状态:

状态码说明schema
200OKResourcePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayResourceVO
addTimestring(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
ownerTaginteger(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
],
"total": 0
}

根据分类ID获取全部资源列表(分页)

接口地址:/WebResource/getResourceFilter/{page}/{limit}/{rclass}/{filter}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
class类别truestring
filter条件pathtruestring
limit总量pathtruestring
page页数pathtruestring
rclassrclasspathtrueinteger(int32)

响应状态:

状态码说明schema
200OKResourcePageVO
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
dataarrayResourceVO
addTimestring(date-time)
authorstring
authorThumbstring
classNamestring
commentNuminteger(int32)
createTimestring(date-time)
hitsinteger(int32)
idinteger(int32)
introstring
ownerTaginteger(int32)
pricestring
profilestring
sortClassstring
statusstring
subheadstring
thumbstring
titlestring
totalinteger(int64)integer(int64)

响应示例:

{
"data": [
{
"addTime": "",
"author": "",
"authorThumb": "",
"className": "",
"commentNum": 0,
"createTime": "",
"hits": 0,
"id": 0,
"intro": "",
"ownerTag": 0,
"price": "",
"profile": "",
"sortClass": "",
"status": "",
"subhead": "",
"thumb": "",
"title": ""
}
],
"total": 0
}

统计资源下载量+1

接口地址:/WebResource/resource/{id}/download

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id资源idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


统计资源喜欢量+1

接口地址:/WebResource/resource/{id}/love

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id资源idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


统计资源浏览量+1

接口地址:/WebResource/resource/{id}/view

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
id资源idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


Web资源评论接口

增加评论

接口地址:/WebResourceComment/addResourceComment

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
resourceComment资源分类对象bodytruestring

响应状态:

状态码说明schema
200OK
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


查看文章对应评论数

接口地址:/WebResourceComment/getResourceCommentnum/{resourceId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
resourceId资源idpathtruestring

响应状态:

状态码说明schema
200OK
401Unauthorized
403Forbidden
404Not Found

响应参数:

暂无

响应示例:


根据资源id查询对应的评论

接口地址:/WebResourceComment/getallResourceComment/{resourceId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
resourceId资源idpathtruestring

响应状态:

状态码说明schema
200OKResourceComment
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
addTime创建时间string
contentstring
emailstring
foreignIdinteger(int32)integer(int32)
idinteger(int32)integer(int32)
parentIdinteger(int32)integer(int32)
profilestring
resourceIdinteger(int32)integer(int32)
userIdinteger(int32)integer(int32)
usernamestring

响应示例:

[
{
"addTime": "",
"content": "",
"email": "",
"foreignId": 0,
"id": 0,
"parentId": 0,
"profile": "",
"resourceId": 0,
"userId": 0,
"username": ""
}
]