|
|
@ -4,7 +4,7 @@ import { request } from '@/utils/request';
|
|
|
|
export const getCaptcha = (params: NetParams.UserGetCaptcha = {}): Promise<NetReq.UserGetCaptcha> => {
|
|
|
|
export const getCaptcha = (params: NetParams.UserGetCaptcha = {}): Promise<NetReq.UserGetCaptcha> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/captcha',
|
|
|
|
url: '/v1/captcha',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -17,7 +17,7 @@ export const getCaptcha = (params: NetParams.UserGetCaptcha = {}): Promise<NetRe
|
|
|
|
export const sendCaptcha = (data: any) => {
|
|
|
|
export const sendCaptcha = (data: any) => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/captcha',
|
|
|
|
url: '/v1/captcha',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -30,7 +30,7 @@ export const sendCaptcha = (data: any) => {
|
|
|
|
export const sendUserWhisper = (data: NetParams.UserWhisper): Promise<NetParams.UserWhisper> => {
|
|
|
|
export const sendUserWhisper = (data: NetParams.UserWhisper): Promise<NetParams.UserWhisper> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/whisper',
|
|
|
|
url: '/v1/user/whisper',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -43,7 +43,7 @@ export const sendUserWhisper = (data: NetParams.UserWhisper): Promise<NetParams.
|
|
|
|
export const bindUserPhone = (data: NetParams.UserBindUserPhone): Promise<NetParams.UserBindUserPhone> => {
|
|
|
|
export const bindUserPhone = (data: NetParams.UserBindUserPhone): Promise<NetParams.UserBindUserPhone> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/phone',
|
|
|
|
url: '/v1/user/phone',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -52,7 +52,7 @@ export const bindUserPhone = (data: NetParams.UserBindUserPhone): Promise<NetPar
|
|
|
|
export const changePassword = (data: NetParams.UserChangePassword): Promise<NetReq.UserChangePassword> => {
|
|
|
|
export const changePassword = (data: NetParams.UserChangePassword): Promise<NetReq.UserChangePassword> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/password',
|
|
|
|
url: '/v1/user/password',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -61,7 +61,7 @@ export const changePassword = (data: NetParams.UserChangePassword): Promise<NetR
|
|
|
|
export const changeNickname = (data: NetParams.UserChangeNickname): Promise<NetReq.UserChangeNickname> => {
|
|
|
|
export const changeNickname = (data: NetParams.UserChangeNickname): Promise<NetReq.UserChangeNickname> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/nickname',
|
|
|
|
url: '/v1/user/nickname',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -74,7 +74,7 @@ export const changeNickname = (data: NetParams.UserChangeNickname): Promise<NetR
|
|
|
|
export const changeAvatar = (data: any) => {
|
|
|
|
export const changeAvatar = (data: any) => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/avatar',
|
|
|
|
url: '/v1/user/avatar',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -83,7 +83,7 @@ export const changeAvatar = (data: any) => {
|
|
|
|
export const getUnreadMsgCount = (params: NetParams.UserGetUnreadMsgCount = {}): Promise<NetReq.UserGetUnreadMsgCount> => {
|
|
|
|
export const getUnreadMsgCount = (params: NetParams.UserGetUnreadMsgCount = {}): Promise<NetReq.UserGetUnreadMsgCount> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/msgcount/unread',
|
|
|
|
url: '/v1/user/msgcount/unread',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -92,7 +92,7 @@ export const getUnreadMsgCount = (params: NetParams.UserGetUnreadMsgCount = {}):
|
|
|
|
export const getMessages = (params: NetParams.UserGetMessages): Promise<NetReq.UserGetMessages> => {
|
|
|
|
export const getMessages = (params: NetParams.UserGetMessages): Promise<NetReq.UserGetMessages> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/messages',
|
|
|
|
url: '/v1/user/messages',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -105,7 +105,7 @@ export const getMessages = (params: NetParams.UserGetMessages): Promise<NetReq.U
|
|
|
|
export const readMessage = (data: any) => {
|
|
|
|
export const readMessage = (data: any) => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/message/read',
|
|
|
|
url: '/v1/user/message/read',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -114,7 +114,7 @@ export const readMessage = (data: any) => {
|
|
|
|
export const getCollections = (params: NetParams.UserGetCollections): Promise<NetReq.UserGetCollections> => {
|
|
|
|
export const getCollections = (params: NetParams.UserGetCollections): Promise<NetReq.UserGetCollections> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/collections',
|
|
|
|
url: '/v1/user/collections',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -123,7 +123,7 @@ export const getCollections = (params: NetParams.UserGetCollections): Promise<Ne
|
|
|
|
export const getStars = (params: NetParams.UserGetStars): Promise<NetReq.UserGetStars> => {
|
|
|
|
export const getStars = (params: NetParams.UserGetStars): Promise<NetReq.UserGetStars> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/stars',
|
|
|
|
url: '/v1/user/stars',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -132,7 +132,7 @@ export const getStars = (params: NetParams.UserGetStars): Promise<NetReq.UserGet
|
|
|
|
export const getUserProfile = (params: NetParams.UserGetUserProfile): Promise<NetReq.UserGetUserProfile> => {
|
|
|
|
export const getUserProfile = (params: NetParams.UserGetUserProfile): Promise<NetReq.UserGetUserProfile> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/profile',
|
|
|
|
url: '/v1/user/profile',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -141,7 +141,7 @@ export const getUserProfile = (params: NetParams.UserGetUserProfile): Promise<Ne
|
|
|
|
export const getUserPosts = (params: NetParams.UserGetUserPosts): Promise<NetReq.UserGetUserPosts> => {
|
|
|
|
export const getUserPosts = (params: NetParams.UserGetUserPosts): Promise<NetReq.UserGetUserPosts> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/posts',
|
|
|
|
url: '/v1/user/posts',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -150,7 +150,7 @@ export const getUserPosts = (params: NetParams.UserGetUserPosts): Promise<NetReq
|
|
|
|
export const getBills = (params: NetParams.UserGetBills): Promise<NetReq.UserGetBills> => {
|
|
|
|
export const getBills = (params: NetParams.UserGetBills): Promise<NetReq.UserGetBills> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/wallet/bills',
|
|
|
|
url: '/v1/user/wallet/bills',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -163,7 +163,7 @@ export const getBills = (params: NetParams.UserGetBills): Promise<NetReq.UserGet
|
|
|
|
export const reqRecharge = (data: NetParams.UserReqRecharge): Promise<NetReq.UserReqRecharge> => {
|
|
|
|
export const reqRecharge = (data: NetParams.UserReqRecharge): Promise<NetReq.UserReqRecharge> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
url: '/user/recharge',
|
|
|
|
url: '/v1/user/recharge',
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -176,7 +176,7 @@ export const reqRecharge = (data: NetParams.UserReqRecharge): Promise<NetReq.Use
|
|
|
|
export const getRecharge = (params: NetParams.UserGetRecharge): Promise<NetReq.UserGetRecharge> => {
|
|
|
|
export const getRecharge = (params: NetParams.UserGetRecharge): Promise<NetReq.UserGetRecharge> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/user/recharge',
|
|
|
|
url: '/v1/user/recharge',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -189,7 +189,7 @@ export const getRecharge = (params: NetParams.UserGetRecharge): Promise<NetReq.U
|
|
|
|
export const getSuggestUsers = (params: { k: string }): Promise<NetReq.UserGetSuggestUsers> => {
|
|
|
|
export const getSuggestUsers = (params: { k: string }): Promise<NetReq.UserGetSuggestUsers> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/suggest/users',
|
|
|
|
url: '/v1/suggest/users',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -202,7 +202,7 @@ export const getSuggestUsers = (params: { k: string }): Promise<NetReq.UserGetSu
|
|
|
|
export const getSuggestTags = (params: { k: string }): Promise<NetReq.UserGetSuggestTags> => {
|
|
|
|
export const getSuggestTags = (params: { k: string }): Promise<NetReq.UserGetSuggestTags> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/suggest/tags',
|
|
|
|
url: '/v1/suggest/tags',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -215,7 +215,7 @@ export const getSuggestTags = (params: { k: string }): Promise<NetReq.UserGetSug
|
|
|
|
export const precheckAttachment = (params: NetParams.UserPrecheckAttachment): Promise<NetReq.UserPrecheckAttachment> => {
|
|
|
|
export const precheckAttachment = (params: NetParams.UserPrecheckAttachment): Promise<NetReq.UserPrecheckAttachment> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/attachment/precheck',
|
|
|
|
url: '/v1/attachment/precheck',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -228,7 +228,7 @@ export const precheckAttachment = (params: NetParams.UserPrecheckAttachment): Pr
|
|
|
|
export const getAttachment = (params: NetParams.UserGetAttachment): Promise<NetReq.UserGetAttachment> => {
|
|
|
|
export const getAttachment = (params: NetParams.UserGetAttachment): Promise<NetReq.UserGetAttachment> => {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
method: 'get',
|
|
|
|
method: 'get',
|
|
|
|
url: '/attachment',
|
|
|
|
url: '/v1/attachment',
|
|
|
|
params
|
|
|
|
params
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|