BbsWebService

Operations

Index Method Parameters Response Type Description
1 empty
2 updatePost
operatorUserId
request
SinglePostResponse
3 getAllPosts
operatorUserId
PostListResponse
4 deletePostById
operatorUserId
postId
VoidResponse
5 getPostsByIds
operatorUserId
postIds[]
PostListResponse
6 newPost
operatorUserId
request
SinglePostResponse
7 getAllPostsWithoutOverload
operatorUserId
Post[]
8 getAllPostIdsWithoutOverload
operatorUserId
Long[]
9 refreshToken
refreshToken
oldToken
RefreshTokenResponse
10 oldOrEven
number
Boolean

empty

Parameters

No Parameters

Response

No Response

updatePost

Parameters

Name Type Required Description
operatorUserId
Long
Y
request
UpdatePostRequest
Property Type Required Description
content String Y
id Long Y
Y

Response

Name Type Required Description
SinglePostResponse
Property Type Required Description
errorCode String Y
errorMessage String Y
post Post Y
post.id Long Y
post.userId Long Y
post.content String Y
post.createTime XMLGregorianCalendar Y
post.firstTenComments[] Comment[] Y
post.firstTenComments[].id Long Y
post.firstTenComments[].userId Long Y
post.firstTenComments[].content String Y
post.canDelete Boolean N
post.canUpdate Boolean N
Y

getAllPosts

Parameters

Name Type Required Description
operatorUserId
Long
Y

Response

Name Type Required Description
PostListResponse
Property Type Required Description
errorCode String Y
errorMessage String Y
posts[] Post[] Y
posts[].id Long Y
posts[].userId Long Y
posts[].content String Y
posts[].createTime XMLGregorianCalendar Y
posts[].firstTenComments[] Comment[] Y
posts[].firstTenComments[].id Long Y
posts[].firstTenComments[].userId Long Y
posts[].firstTenComments[].content String Y
posts[].canDelete Boolean N
posts[].canUpdate Boolean N
Y

deletePostById

Parameters

Name Type Required Description
operatorUserId
Long
Y
postId
Long
Y

Response

Name Type Required Description
VoidResponse
Property Type Required Description
errorCode String Y
errorMessage String Y
Y

getPostsByIds

Parameters

Name Type Required Description
operatorUserId
Long
Y
postIds[]
Long[]
Y

Response

Name Type Required Description
PostListResponse
Property Type Required Description
errorCode String Y
errorMessage String Y
posts[] Post[] Y
posts[].id Long Y
posts[].userId Long Y
posts[].content String Y
posts[].createTime XMLGregorianCalendar Y
posts[].firstTenComments[] Comment[] Y
posts[].firstTenComments[].id Long Y
posts[].firstTenComments[].userId Long Y
posts[].firstTenComments[].content String Y
posts[].canDelete Boolean N
posts[].canUpdate Boolean N
Y

newPost

Parameters

Name Type Required Description
operatorUserId
Long
Y
request
NewPostRequest
Property Type Required Description
content String Y
Y

Response

Name Type Required Description
result
SinglePostResponse
Property Type Required Description
errorCode String Y
errorMessage String Y
post Post Y
post.id Long Y
post.userId Long Y
post.content String Y
post.createTime XMLGregorianCalendar Y
post.firstTenComments[] Comment[] Y
post.firstTenComments[].id Long Y
post.firstTenComments[].userId Long Y
post.firstTenComments[].content String Y
post.canDelete Boolean N
post.canUpdate Boolean N
Y

getAllPostsWithoutOverload

Parameters

Name Type Required Description
operatorUserId
Long
Y

Response

Name Type Required Description
Post[]
Property Type Required Description
id Long Y
userId Long Y
content String Y
createTime XMLGregorianCalendar Y
firstTenComments[] Comment[] Y
firstTenComments[].id Long Y
firstTenComments[].userId Long Y
firstTenComments[].content String Y
canDelete Boolean N
canUpdate Boolean N
Y

getAllPostIdsWithoutOverload

Parameters

Name Type Required Description
operatorUserId
Long
Y

Response

Name Type Required Description
Long[]
Y

refreshToken

Parameters

Name Type Required Description
refreshToken
RefreshToken
Y
oldToken
String
Y In header

Response

Name Type Required Description
refreshTokenResponse
RefreshTokenResponse
Y

oldOrEven

Parameters

Name Type Required Description
number
Integer
Y

Response

Name Type Required Description
Boolean
Y