You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
740 B
35 lines
740 B
import { defAbpHttp } from '/@/utils/http/abp';
|
|
import {
|
|
Text,
|
|
SetTextInput,
|
|
GetTextByKey,
|
|
GetTextRequest,
|
|
TextListResult,
|
|
} from './model/textsModel';
|
|
|
|
enum Api {
|
|
SetText = '/api/localization/texts',
|
|
GetList = '/api/abp/localization/texts',
|
|
GetByCulture = '/api/abp/localization/texts/by-culture-key',
|
|
}
|
|
|
|
export const getByCulture = (input: GetTextByKey) => {
|
|
return defAbpHttp.get<Text>({
|
|
url: Api.GetByCulture,
|
|
params: input,
|
|
});
|
|
};
|
|
|
|
export const setText = (input: SetTextInput) => {
|
|
return defAbpHttp.put<Text>({
|
|
url: Api.SetText,
|
|
data: input,
|
|
});
|
|
};
|
|
|
|
export const getList = (input: GetTextRequest) => {
|
|
return defAbpHttp.get<TextListResult>({
|
|
url: Api.GetList,
|
|
params: input,
|
|
});
|
|
};
|
|
|