import request from '@/utils/request';

//视图
export function preview(tableId: any) {
	return request({
		url: '/api/dm/template/' + tableId,
		method: 'get',
	});
}

// 生成代码
export function code(tableId: any) {
	return request({
		url: '/api/develop/code/gen/code/' + tableId,
		method: 'get',
	});
}

// 生成api菜单
export function menuAndApi(tableId: any, menuId: any) {
	return request({
		url: '/api/develop/code/gen/configure/' + tableId + '?menuId=' + menuId,
		method: 'get',
	});
}
