//我的相关:
const {
	http
} = uni.$u


//数字人作品列表
export const workList = (params, config = {}) => http.post('index.php/api.Digit/list', params, config)

//生成数字人作品
export const generateWork = (params, config = {}) => http.post('index.php/api.Digit/addDigit', params, config)

//删除数字人作品
export const delWork = (params, config = {}) => http.post('index.php/api.Digit/deleteDigit', params, config)

//数字人角色列表
export const roleList = (params, config = {}) => http.post('index.php/api.Digit/getRoleList', params, config)

//数字人声音列表
export const voiceList = (params, config = {}) => http.post('index.php/api.Digit/getAudioList', params, config)


//数字人背景列表
export const backList = (params, config = {}) => http.post('index.php/api.Digit/getBackList', params, config)

//数字人草稿列表
export const draftList = (params, config = {}) => http.post('index.php/api.Digit/draftList', params, config)

//注册
export const register = (params, config = {}) => http.post('index.php/api.Digit/register', params, config)

//登录
export const login = (params, config = {}) => http.post('index.php/api.Digit/login', params, config)


//获取数字人合成背景
export const getBg = (params, config = {}) => http.post('index.php/api.Digit/getBackImageByRole', params, config)