You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

856 lines
16 KiB

export interface listCategoryRequest {
cityId: number
listType: string
}
export interface listCategoryResponseItem {
title: string
url: string
isNew: boolean
num: number
}
export interface listCategoryResponse {
list: listCategoryResponseItem[]
}
export interface listQuestionPageRequest {
questionType: string
cityId: number
categoryId: number
page: number
createDay: number
}
export interface listQuestionPageResponseItem {
userId: number
userLogo: string
userLevel: number
userName: string
title: string
url: string
lastTimeTitle: string
lastTimeTitleUrl: string
city: string
cityUrl: string
category: string
categoryUrl: string
answerCount: number
viewCount: number
commentCount: number
isNew: boolean
}
export interface listQuestionPageResponse {
list: listQuestionPageResponseItem[]
count: number
}
export interface listAnswerOfTheDayRequest {
page: number
size: number
}
export interface listAnswerOfTheDayResponseItem {
title: string
url: string
postTime: string
content: string
answeredName: string
shortContent: string
}
export interface listAnswerOfTheDayResponse {
list: listAnswerOfTheDayResponseItem[]
num: number
}
export interface userRightInfoRequest {
}
export interface userRightInfoResponse {
userId: number
userName: string
photo: string
point: number
messageCount: number
newNotice: number
newAnswer: number
newComment: number
userLevel: number
adminLevel: number
email: string
}
export interface listHotTopUserRequest {
}
export interface listHotTopUserResponseItem {
name: string
photo: string
userId: number
}
export interface listHotTopUserResponse {
hots: listHotTopUserResponseItem[]
tops: listHotTopUserResponseItem[]
guestCount: number
}
export interface listFilterQuestionRequest {
title: string
}
export interface listFilterQuestionResponseItem {
title: string
url: string
}
export interface listFilterQuestionResponse {
list: listFilterQuestionResponseItem[]
}
export interface listFilterUserRequest {
user: string
}
export interface listFilterUserResponseItem {
userId: number
userName: string
}
export interface listFilterUserResponse {
list: listFilterUserResponseItem[]
}
export interface listRelatedQuestionsRequest {
cityId: number
categoryId: number
}
export interface listRelatedQuestionsResponseItem {
title: string
url: string
postTime: string
}
export interface listRelatedQuestionsResponse {
list: listRelatedQuestionsResponseItem[]
}
export interface searchQuestionRequest {
keyword: string
page: number
}
export interface searchQuestionResponseItem {
userId: number
userLogo: string
userName: string
title: string
url: string
postTime: string
city: string
cityUrl: string
category: string
categoryUrl: string
answerCount: number
content: string
}
export interface searchQuestionResponse {
list: searchQuestionResponseItem[]
count: number
}
export interface questionDetailPageRequest {
aliasKey: string
nodeId: number
page: number
}
export interface questionDetailPageResponseItemVote {
good: number
bad: number
vote: number
// 0没有点赞 点赞过 1 good 2 bad
status: number
}
export interface questionDetailPageResponseItemUser {
logo: string
name: string
postNum: number
level: number
userId: number
isAnonymous: boolean
signature: string
}
export interface questionDetailPageResponseItemQuestionItem {
forbidden: boolean
city: string
cityUrl: string
category: string
categoryUrl: string
title: string
cityId: number
categoryId: number
}
export interface questionDetailPageResponseItem {
id: number
canManage: boolean
content: string
isDel: boolean
postTime: string
commentNum: number
vote: questionDetailPageResponseItemVote
user: questionDetailPageResponseItemUser
question: questionDetailPageResponseItemQuestionItem
comments: questionDetailPageResponseItem[]
}
export interface questionDetailPageResponse {
question: questionDetailPageResponseItem
highestVoted: questionDetailPageResponseItem
answers: questionDetailPageResponseItem[]
answerCount: number
commentCount: number
}
export interface userCenterProfilePageRequest {
userId: number
questionPage: number
answerPage: number
}
export interface userCenterProfilePageResponseItem {
title: string
postTime: string
answerNum: string
url: string
isDel: boolean
}
export interface userCenterProfilePageResponse {
online: boolean
userName: string
photo: string
point: number
registerTime: string
userLevel: number
aboutMe: string
interests: string
skype: string
email: string
google: string
questionCount: number
questions: userCenterProfilePageResponseItem[]
answerCount: number
answers: userCenterProfilePageResponseItem[]
}
export interface userCenterEditPageRequest {
userId: number
}
export interface userCenterEditPageData {
signature: string
aboutMe: string
interests: string
email: string
google: string
skype: string
isPlainText: boolean
isNotify: boolean
userId: number
}
export interface userCenterEditPageResponse {
data: userCenterEditPageData
}
export interface userCenterEditRequest {
data: userCenterEditPageData
userId: number
}
export interface userCenterEditResponse {
}
export interface userCenterInBoxPageRequest {
userId: number
page: number
}
export interface userCenterInBoxPageResponseItem {
id: number
userName: string
userId: number
isNew: boolean
subject: string
lastTime: string
}
export interface userCenterInBoxPageResponse {
list: userCenterInBoxPageResponseItem[]
count: number
}
export interface deleteInboxRequest {
userId: number
ids: number[]
}
export interface deleteInboxResponse {
}
export interface messageSendRequest {
userIds: number[]
subject: string
content: string
//消息ThreadId
threadId: number
}
export interface messageSendResponse {
id: number
}
export interface messageDetailPageRequest {
messageId: number
page: number
}
export interface messageDetailPageResponseItem {
userId: number
photo: string
userName: string
postTime: string
id: number
content: string
isNew: boolean
}
export interface messageDetailPageResponse {
list: messageDetailPageResponseItem[]
fromName: string
count: number
threadId: number
}
export interface userCenterPointsPageRequest {
userId: number
page: number
}
export interface userCenterPointsPageResponseItem {
point: number
url: string
doTime: string
pointType: string
id: number
}
export interface userCenterPointsPageResponse {
list: userCenterPointsPageResponseItem[]
count: number
allPoints: number
}
export interface userCenterNewAnswersPageRequest {
userId: number
page: number
}
export interface userCenterNewAnswersPageResponseItem {
userId: number
userName: string
logo: string
answer: string
answerTime: string
answerUrl: string
questionUrl: string
question: string
id: number
}
export interface userCenterNewAnswersPageResponse {
list: userCenterNewAnswersPageResponseItem[]
count: number
}
export interface userCenterNewCommentsPageRequest {
page: number
userId: number
}
export interface userCenterNewCommentsPageResponseItem {
userId: number
userName: string
logo: string
comment: string
commentTime: string
commentUrl: string
answer: string
answerUrl: string
answeredId: number
id: number
}
export interface userCenterNewCommentsPageResponse {
list: userCenterNewCommentsPageResponseItem[]
count: number
}
export interface captchaRequest {
}
export interface captchaResponse {
key: string
val: string
}
export interface noticesPageRequest {
page: number
}
export interface noticesPageResponseItem {
title: string
postTime: string
content: string
id: number
}
export interface noticesPageResponse {
list: noticesPageResponseItem[]
count: number
}
export interface forbiddenQuestionRequest {
questionId: number
isForbidden: boolean
}
export interface forbiddenQuestionResponse {
isForbidden: boolean
}
export interface addQuestionRequest {
title: string
content: string
categoryId: number
cityId: number
id: number
userId: number
}
export interface addQuestionResponse {
url: string
}
export interface getEditQuestionRequest {
nid: number
}
export interface getEditQuestionResponse {
title: string
content: string
categoryId: number
cityId: number
id: number
isAnswer: boolean
}
export interface editUserLogoRequest {
imageData: string
userId: number
}
export interface editUserLogoResponse {
url: string
}
export interface deleteNodeRequest {
nodeId: number
reasonTitle: string
reasonBody: string
}
export interface deleteNodeResponse {
}
export interface reportRequest {
nodeId: number
content: string
code: string
codeKey: string
type: string
}
export interface reportResponse {
}
export interface forwardQuestionRequest {
nodeId: number
content: string
originalContent: string
sendTo: string
}
export interface forwardQuestionResponse {
}
export interface addAnswerRequest {
id: number
parentId: number
title: string
content: string
}
export interface addAnswerResponse {
}
export interface voteNodeGoodRequest {
nodeId: number
isGood: boolean
}
export interface voteNodeGoodResponse {
}
export interface loginRequest {
loginType: string
userName: string
password: string
code: string
}
export interface loginResponse {
code: string
}
export interface adminRolesPageRequest {
}
export interface adminRolesPageResponseItem {
name: string
id: number
isBlock: boolean
}
export interface adminRolesPageResponse {
list: adminRolesPageResponseItem[]
count: number
}
export interface adminUpdateRoleActionRequest {
title: string
id: number
}
export interface adminUpdateRoleActionResponse {
}
export interface adminUserPageRequest {
roleId: number
status: number
createdStart: string
createdEnd: string
loginStart: string
loginEnd: string
email: string
userId: number
name: string
page: number
}
export interface adminUserPageResponseItem {
id: number
name: string
status: string
roles: number[]
registerTime: string
lastTime: string
}
export interface adminUserPageResponse {
list: adminUserPageResponseItem[]
count: number
}
export interface adminUpdateUserActionRequest {
userId: number
status?: number
roleIds?: number[]
}
export interface adminUpdateUserActionResponse {
}
export interface adminNodePageRequest {
status: number
// 1 answer 2 question
type: number
page: number
createdStart: string
createdEnd: string
title: string
name: string
userId: number
}
export interface adminNodePageResponseItem {
id: number
title: string
type: string
userId: number
userName: string
status: number
url: string
promote: number
sticky: number
reason: string
postTime: string
changedTime: string
}
export interface adminNodePageResponse {
list: adminNodePageResponseItem[]
count: number
}
export interface updateNodeRequest {
status?: number
promote?: number
sticky?: number
nodeIds: number[]
}
export interface updateNodeResponse {
}
export interface helpPageRequest {
urlKey: string
}
export interface helpPageResponseItem {
title: string
url: string
children: helpPageResponseItem[]
pid: number
}
export interface helpPageResponse {
menus: helpPageResponseItem[]
content: string
title: string
}
export interface randQuestionRequest {
}
export interface randQuestionResponse {
url: string
}
export interface exchangeRequest {
}
export interface exchangeResponseItem {
title: string
content: string
point: number
image: string
id: number
}
export interface exchangeResponse {
list: exchangeResponseItem[]
}
export interface adminExchangeRequest {
page: number
}
export interface adminExchangeResponseItem {
id: number
type: string
name: string
userId: number
points: number
email: string
addressCode: string
address: string
other: string
createdTime: string
}
export interface adminExchangeResponse {
list: adminExchangeResponseItem[]
count: number
}
export interface exchangeActionRequest {
id: number
name: string
email: string
addressCode: string
address: string
other: string
}
export interface exchangeActionResponse {
}
export interface adminPointsPageRequest {
userId: number
typeId: number
page: number
startTime: string
endTime: string
}
export interface adminPointsPageResponseItem {
id: number
userId: number
point: number
createdTime: string
typeId: number
url: string
userName: string
}
export interface adminPointsPageResponse {
list: adminPointsPageResponseItem[]
count: number
}
export interface adminAddPointActionRequest {
userId: number
point: number
typeId: number
description: string
entryId: number
}
export interface adminAddPointActionResponse {
}
export interface redirectRequest {
id: number
type: string
}
export interface redirectResponse {
url: string
}
export interface clearCheckTimeActionRequest {
typeId: number
}
export interface clearCheckTimeActionResponse {
}
export interface adminAddHelpRequest {
id: number
title: string
url: string
parentId: number
sort: number
content: string
}
export interface adminAddHelpResponse {
id: number
}
export interface adminSearchHelpRequest {
status: number
page: number
}
export interface adminSearchHelpResponseItem {
id: number
title: string
url: string
sort: number
status: number
}
export interface adminSearchHelpResponse {
list: adminSearchHelpResponseItem[]
num: number
}
export interface adminGetHelpRequest {
id: number
}
export interface adminGetHelpResponseItem {
id: number
title: string
sort: number
content: string
}
export interface adminGetHelpResponse {
id: number
title: string
url: string
sort: number
list: adminGetHelpResponseItem[]
}
export interface adminDeleteHelpRequest {
id: number
status: number
}
export interface adminDeleteHelpResponse {
}
export interface adminSearchExchangeRequest {
status: number
page: number
}
export interface adminSearchExchangeResponseItem {
id: number
title: string
content: string
picture: string
point: number
status: number
}
export interface adminSearchExchangeResponse {
list: adminSearchExchangeResponseItem[]
count: number
}
export interface adminAddExchangeRequest {
id: number
title: string
content: string
picture: string
point: number
}
export interface adminAddExchangeResponse {
}
export interface adminDeleteExchangeRequest {
id: number
status: number
}
export interface adminDeleteExchangeResponse {
a: Uint8Array[]
b: number
c: { [key: string]: number }
ad: Uint8Array
}