钱包 获取成功id
This commit is contained in:
@@ -82,6 +82,7 @@ interface Wallect {
|
||||
export async function getwallect(){
|
||||
const res = await get<Array<Wallect>>('wallect')
|
||||
console.log(res)
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -285,8 +286,9 @@ interface SaleInfo{
|
||||
* @param data
|
||||
*/
|
||||
export async function saleinfo(data?:any){
|
||||
const res= await get<SaleInfo>('account',data)
|
||||
const res= await get<Array<SaleInfo>>('account',data)
|
||||
console.log(res)
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -298,6 +300,52 @@ export async function cashout(data?:any){
|
||||
message.success("新增成功")
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 账户详情
|
||||
*/
|
||||
interface AccountInfo{
|
||||
wallectid:number,
|
||||
typeid:number,
|
||||
type:number,
|
||||
account:number,
|
||||
mname:string,
|
||||
bankcode:string,
|
||||
bankname:string
|
||||
}
|
||||
export async function getaccountinfo(data?: any){
|
||||
const res=await get<AccountInfo>('wallect/'+data)
|
||||
console.log(res,2333)
|
||||
return {
|
||||
accountid:res.data.wallectid,
|
||||
type:res.data.type,
|
||||
account:res.data.account,
|
||||
mname:res.data.mname,
|
||||
bankcode:res.data.bankcode,
|
||||
bankname:res.data.bankname
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户编辑
|
||||
*/
|
||||
export async function editaccount(data?:any){
|
||||
const res=await put<Liveaddrule>('wallect/'+data);
|
||||
if(res.code==0){
|
||||
message.success("修改成功")
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 删除账户
|
||||
*/
|
||||
export async function deleteaccount(data:any) {
|
||||
|
||||
const res = await del<Liveaddrule>('wallect/'+data);
|
||||
if(res.code==0){
|
||||
message.success("删除成功")
|
||||
}
|
||||
|
||||
console.log(res)
|
||||
}
|
||||
/**
|
||||
* 发送验证码
|
||||
* @param phone 手机号
|
||||
|
||||
Reference in New Issue
Block a user