mirror of https://github.com/rocboss/paopao-ce
parent
33631a9806
commit
b2a66c3788
@ -1,188 +1,182 @@
|
|||||||
declare module NetParams {
|
declare namespace NetParams {
|
||||||
|
|
||||||
interface AuthUserLogin {
|
interface AuthUserLogin {
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username: string,
|
username: string;
|
||||||
/** 密码 */
|
/** 密码 */
|
||||||
password: string
|
password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AuthUserRegister {
|
interface AuthUserRegister {
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username: string,
|
username: string;
|
||||||
/** 密码 */
|
/** 密码 */
|
||||||
password: string
|
password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type AuthUserInfo = string
|
type AuthUserInfo = string;
|
||||||
|
|
||||||
interface AuthUpdateUserPassword {
|
interface AuthUpdateUserPassword {
|
||||||
/** 新密码 */
|
/** 新密码 */
|
||||||
password: string,
|
password: string;
|
||||||
/** 旧密码 */
|
/** 旧密码 */
|
||||||
old_password: string
|
old_password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetCollections {
|
interface UserGetCollections {
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserPrecheckAttachment {
|
interface UserPrecheckAttachment {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetAttachment {
|
interface UserGetAttachment {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetUnreadMsgCount {
|
interface UserGetUnreadMsgCount {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
interface UserGetMessages {
|
interface UserGetMessages {
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetUserPosts {
|
interface UserGetUserPosts {
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username: string,
|
username: string;
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetStars {
|
interface UserGetStars {
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetUserProfile {
|
interface UserGetUserProfile {
|
||||||
username: string
|
username: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetBills {
|
interface UserGetBills {
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserReqRecharge {
|
interface UserReqRecharge {
|
||||||
amount: number
|
amount: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetRecharge {
|
interface UserGetRecharge {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserBindUserPhone {
|
interface UserBindUserPhone {
|
||||||
phone: string,
|
phone: string;
|
||||||
captcha: string
|
captcha: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserGetCaptcha {
|
interface UserGetCaptcha {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
interface UserWhisper {
|
interface UserWhisper {
|
||||||
user_id: number,
|
user_id: number;
|
||||||
content: string
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserChangePassword {
|
interface UserChangePassword {
|
||||||
/** 新密码 */
|
/** 新密码 */
|
||||||
password: string,
|
password: string;
|
||||||
/** 旧密码 */
|
/** 旧密码 */
|
||||||
old_password: string
|
old_password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserChangeNickname {
|
interface UserChangeNickname {
|
||||||
/** 昵称 */
|
/** 昵称 */
|
||||||
nickname: string
|
nickname: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetPost {
|
interface PostGetPost {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetPosts {
|
interface PostGetPosts {
|
||||||
query: string | null,
|
query: string | null;
|
||||||
type: string,
|
type: string;
|
||||||
page: number,
|
page: number;
|
||||||
page_size: number
|
page_size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostLockPost {
|
interface PostLockPost {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostStickPost {
|
interface PostStickPost {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetPostStar {
|
interface PostGetPostStar {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostPostStar {
|
interface PostPostStar {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetPostCollection {
|
interface PostGetPostCollection {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostPostCollection {
|
interface PostPostCollection {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetTags {
|
interface PostGetTags {
|
||||||
type: "hot" | string,
|
type: 'hot' | string;
|
||||||
num: number
|
num: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostGetPostComments {
|
interface PostGetPostComments {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostCreatePost {
|
interface PostCreatePost {
|
||||||
/** 帖子内容列表 */
|
/** 帖子内容列表 */
|
||||||
contents: Partial<Item.PostItemProps>[],
|
contents: Partial<Item.PostItemProps>[];
|
||||||
/** 标签列表 */
|
/** 标签列表 */
|
||||||
tags: string[],
|
tags: string[];
|
||||||
/** 艾特用户列表 */
|
/** 艾特用户列表 */
|
||||||
users: string[],
|
users: string[];
|
||||||
/** 附件价格 */
|
/** 附件价格 */
|
||||||
attachment_price: number
|
attachment_price: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostDeletePost {
|
interface PostDeletePost {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostCreateComment {
|
interface PostCreateComment {
|
||||||
/** 内容ID */
|
/** 内容ID */
|
||||||
post_id: number,
|
post_id: number;
|
||||||
/** 帖子内容列表 */
|
/** 帖子内容列表 */
|
||||||
contents: Partial<Item.CommentItemProps>[],
|
contents: Partial<Item.CommentItemProps>[];
|
||||||
/** 艾特用户列表 */
|
/** 艾特用户列表 */
|
||||||
users: string[]
|
users: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostDeleteComment {
|
interface PostDeleteComment {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostCreateCommentReply {
|
interface PostCreateCommentReply {
|
||||||
/** 艾特的用户UID */
|
/** 艾特的用户UID */
|
||||||
at_user_id: number,
|
at_user_id: number;
|
||||||
/** 回复的评论ID */
|
/** 回复的评论ID */
|
||||||
comment_id: number,
|
comment_id: number;
|
||||||
/** 回复内容 */
|
/** 回复内容 */
|
||||||
content: string
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PostDeleteCommentReply{
|
interface PostDeleteCommentReply {
|
||||||
id: number
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue