13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
import apiService from './api.service'
|
|
import { BranchSeedResultDto } from '@/proxy/branch/seed'
|
|
|
|
export async function runBranchSeed(branchId: string): Promise<BranchSeedResultDto> {
|
|
const response = await apiService.fetchData<BranchSeedResultDto>(
|
|
{
|
|
method: 'POST',
|
|
url: `/api/app/branch/seed/${branchId}`,
|
|
},
|
|
{ apiName: 'Default' },
|
|
)
|
|
return response.data
|
|
}
|