|
|
|
@ -14,46 +14,52 @@ export default class CustomUrl {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async get( |
|
|
|
|
params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
_params: Pick<CustomUrl, 'id' | 'view_id' | 'custom_path'>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return {} as CustomUrl; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async getOriginUrlByCustomPath( |
|
|
|
|
customPath: string, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
_customPath: string, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return ''; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async insert( |
|
|
|
|
customUrl: Partial<CustomUrl>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
_customUrl: Partial<CustomUrl>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return {} as CustomUrl; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async list( |
|
|
|
|
params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
_params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return [] as CustomUrl[]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async update( |
|
|
|
|
id: string, |
|
|
|
|
customUrl: Partial<CustomUrl>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
) {} |
|
|
|
|
_id: string, |
|
|
|
|
_customUrl: Partial<CustomUrl>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return {} as CustomUrl; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static async checkAvailability( |
|
|
|
|
params: Pick<CustomUrl, 'id' | 'custom_path'>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
) {} |
|
|
|
|
_params: Pick<CustomUrl, 'id' | 'custom_path'>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static async delete( |
|
|
|
|
customUrl: Pick<CustomUrl, 'id' | 'view_id'>, |
|
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
|
) {} |
|
|
|
|
_customUrl: Pick<CustomUrl, 'id' | 'view_id'>, |
|
|
|
|
_ncMeta = Noco.ncMeta, |
|
|
|
|
): Promise<any> { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|