parent
51f03e76f6
commit
1511c2f7ea
@ -1,10 +1,18 @@
|
||||
import clientHttp from '@/utils/request/client';
|
||||
import { getAuthorization } from '@/utils';
|
||||
|
||||
/**
|
||||
* @description 音乐人-提交申请
|
||||
*/
|
||||
|
||||
export const apiArtistsSignUp = async (params: any) => {
|
||||
const result = await clientHttp.post('/user/artist/register', params);
|
||||
return result;
|
||||
export const apiArtistsSignUp = async (data: any) => {
|
||||
const token = await getAuthorization();
|
||||
const response = await fetch('/queyueapi/user/artist/register', {
|
||||
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