import request from '@/utils/request.uts'
import { WechatJsPayNotifyResponse} from '@/api/youhujun/pay/pay-type.uts'
import type { LoginApiResponse } from '@/api/youhujun/user/login/login-type.uts'
import type {LoginByUserIdParam,TestPayParam} from '@/api/test-type.uts'
export function test(data:any)
{
return request<any>({
url: '/test',
method: 'GET',
data,
},{uniCloud:false})
}
/**
* 测试用户支付订单
*/
export function testPayOrder(data:TestPayParam)
{
return request<WechatJsPayNotifyResponse>({
url: '/testPayOrder',
method: 'POST',
data,
},{uniCloud:false})
}
/**
* 测试用户支付订单
*/
export function loginByUserId(data:LoginByUserIdParam)
{
return request<LoginApiResponse>({
url: '/loginByUserId',
method: 'POST',
data,
},{uniCloud:false})
}
/**
* 测试服务器主动发起消息
*/
export function testWebsocket(data:any)
{
return request({
url: '/testWebsocket',
method: 'POST',
data,
},{uniCloud:false})
}
/**
* 测试事件
*/
export function testEvent()
{
return request({
url: '/testEvent',
method: 'GET',
},{uniCloud:false})
}