import request from '@/sheep/request';

export default {
	// 发起提现
	withdraw: {
		list: (params) =>
			request({
				url: 'withdraw',
				method: 'GET',
				params,
				custom: {
					auth: true,
				},
			}),
		rules: () =>
			request({
				url: 'withdraw/rules',
				method: 'GET',
				custom: {
					auth: true,
				},
			}),
		apply: (data) =>
			request({
				url: '/app-api/trade/brokerage-withdraw/create',
				method: 'POST',
				data,
				custom: {
					loadingMsg: '申请中',
					// auth: true,
				},
			}),
		userGet: (params) =>
			request({
				url: '/app-api/trade/brokerage-user/get',
				method: 'GET',
				params,
				// custom: {
				//   loadingMsg: '申请中',
				//   auth: true,
				// },
			}),
	},
};