import env from "../index";
const url = `${env.API_URI}/salary`;

export default {
  subFile: (name: string, group: string, id: string, subId: string) =>
    `${url}/sub-file/${name}/${group}/${id}/${subId}`,

  subFileByFileName: (
    name: string,
    group: string,
    id: string,
    subId: string,
    fileName: string
  ) => `${url}/sub-file/${name}/${group}/${id}/${subId}/${fileName}`,

  file: (name: string, group: string, id: string) =>
    `${url}/file/${name}/${group}/${id}`,

  fileByPath: (name: string) =>
    `${url}/file/${name}`,
  fileByFile: (name: string, group: string, id: string, fileName: string) =>
    `${url}/file/${name}/${group}/${id}/${fileName}`,
};
