文档
测试

获取文章详情

GET
http://daduhui.mangotechdemo.com.au/webapi/UserArticles/GetUserArticle?guid=8E8E7EC6-C0AD-4163-8BDC-EDEA607E77D0&loginUserId=16

接口描述

获取文章详情

请求参数

参数名
类型
描述
必填
guid
string
guid
必填
loginUserId
long
当前登录人的userid(如果想获取是否有修改权限则必填)
可选

响应参数

参数名
类型
描述
必填
model
object
数据字典
必填
Id
int
示例:17; 表Id
必填
GUID
string
示例:8e8e7ec6-c0ad-4163-8bdc-edea607e77d0 ; GUID
必填
Title
string
示例:1212121 ;标题
必填
UserId
int
示例:16 ; 创建人userid
必填
UserName
object
示例:null ;创建人username
必填
UserNickName
object
示例:null ;创建人昵称
必填
PublishTime
string
示例:2021-01-21T20:31:05.653 ;发布时间
必填
PublishTimeString
string
示例:2021-01-21 20:31:05 ; 格式化之后的发布时间
必填
Status
int
示例:1 ; 0待发布1已发布2已撤回
必填
StatusString
string
示例:已发布;
必填
IsTop
int
示例:0;是否置顶0 否1是
必填
ContentDetail
string
示例:2121212;具体内容
必填
CoverFileName
string
示例:20210121203102948.png;图片文件名 (多个以英文分号分隔)
必填
Introduction
object
示例:null ;简介(目前应该是未使用吧,发布文章的时候并未赋值吧前端)
必填
ContentType
int
示例:2; ContentType == 2 为 "插入链接" ,非2为 "编辑内容"
必填
CoverUrl
array
图片的url
必填
GroupCreatorAvatarUrl
object
示例:null;圈主的头像url
必填
ViewCount
int
示例:4;浏览量
必填
CollectionCount
int
示例:0;收藏量
必填
HasModifyRight
boolean
示例:true;是否有权限修改
必填
code
int
示例:0;0正常-1异常
必填
msg
string
错误代码
必填

说明 / 示例

返回值示例: { "model": { "Id": 17, "GUID": "8e8e7ec6-c0ad-4163-8bdc-edea607e77d0", "Title": "1212121", "UserId": 16, "UserName": null, "UserNickName": null, "PublishTime": "2021-01-21T20:31:05.653", "PublishTimeString": "2021-01-21 20:31:05", "Status": 1, "StatusString": "已发布", "IsTop": 0, "ContentDetail": "2121212", "CoverFileName": "20210121203102948.png", "Introduction": null, "ContentType": 2, "CoverUrl": [ "http://daduhui.mangotechdemo.com.au/webapi/MediaApi/GetFileByFileNameType?fileName=20210121203102948.png&imgType=21" ], "GroupCreatorAvatarUrl": null, "ViewCount": 4, "CollectionCount": 0, "HasModifyRight": true }, "code": 0, "msg": "获取成功" }