feat: 批量去除 vo
This commit is contained in:
@@ -20,14 +20,14 @@ export namespace SystemSocialUserApi {
|
||||
}
|
||||
|
||||
/** 社交绑定请求 */
|
||||
export interface SocialUserBindReqVO {
|
||||
export interface SocialUserBindReq {
|
||||
type: number;
|
||||
code: string;
|
||||
state: string;
|
||||
}
|
||||
|
||||
/** 取消社交绑定请求 */
|
||||
export interface SocialUserUnbindReqVO {
|
||||
export interface SocialUserUnbindReq {
|
||||
type: number;
|
||||
openid: string;
|
||||
}
|
||||
@@ -49,12 +49,12 @@ export function getSocialUser(id: number) {
|
||||
}
|
||||
|
||||
/** 社交绑定,使用 code 授权码 */
|
||||
export function socialBind(data: SystemSocialUserApi.SocialUserBindReqVO) {
|
||||
export function socialBind(data: SystemSocialUserApi.SocialUserBindReq) {
|
||||
return requestClient.post<boolean>('/system/social-user/bind', data);
|
||||
}
|
||||
|
||||
/** 取消社交绑定 */
|
||||
export function socialUnbind(data: SystemSocialUserApi.SocialUserUnbindReqVO) {
|
||||
export function socialUnbind(data: SystemSocialUserApi.SocialUserUnbindReq) {
|
||||
return requestClient.delete<boolean>('/system/social-user/unbind', { data });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user