parent
51f03e76f6
commit
1511c2f7ea
@ -1,10 +1,18 @@
|
|||||||
import clientHttp from '@/utils/request/client';
|
import { getAuthorization } from '@/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 音乐人-提交申请
|
* @description 音乐人-提交申请
|
||||||
*/
|
*/
|
||||||
|
export const apiArtistsSignUp = async (data: any) => {
|
||||||
export const apiArtistsSignUp = async (params: any) => {
|
const token = await getAuthorization();
|
||||||
const result = await clientHttp.post('/user/artist/register', params);
|
const response = await fetch('/queyueapi/user/artist/register', {
|
||||||
return result;
|
headers: {
|
||||||
|
Authorization: token || '',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
Connection: 'keep-alive',
|
||||||
|
},
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify(data),
|
||||||
|
});
|
||||||
|
return await response.json();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue