mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
[improvement][semantic-fe] Dictionary import for dimension values supported in Q&A visibility (#89)
* [improvement][semantic-fe] Add model alias setting & Add view permission restrictions to the model permission management tab. [improvement][semantic-fe] Add permission control to the action buttons for the main domain; apply high sensitivity filtering to the authorization of metrics/dimensions. [improvement][semantic-fe] Optimize the editing mode in the dimension/metric/datasource components to use the modelId stored in the database for data, instead of relying on the data from the state manager. * [improvement][semantic-fe] Add time granularity setting in the data source configuration. * [improvement][semantic-fe] Dictionary import for dimension values supported in Q&A visibility
This commit is contained in:
@@ -340,3 +340,24 @@ export function deleteModel(modelId: number): Promise<any> {
|
||||
export function getModelDetail(data: any): Promise<any> {
|
||||
return request.get(`${process.env.API_BASE_URL}model/getModel/${data.modelId}`);
|
||||
}
|
||||
|
||||
export function createDictTask(data: any): Promise<any> {
|
||||
return request(`${process.env.CHAT_API_BASE_URL}dict/task`, {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteDictTask(data: any): Promise<any> {
|
||||
return request(`${process.env.CHAT_API_BASE_URL}dict/task/delete`, {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function searchDictLatestTaskList(data: any): Promise<any> {
|
||||
return request(`${process.env.CHAT_API_BASE_URL}dict/task/search/latest`, {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user