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