这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 

31 lines
976 B

import { defHttp } from '/@/utils/http/axios';
import {
TextTemplateContentDto,
TextTemplateContentGetInput,
TextTemplateRestoreInput,
TextTemplateContentUpdateDto
} from './model';
export const GetAsyncByInput = (input: TextTemplateContentGetInput) => {
let url = `/api/text-templating/templates/content/${input.name}`;
if (input.culture) {
url = `/api/text-templating/templates/content/${input.culture}/${input.name}`;
}
return defHttp.get<TextTemplateContentDto>({
url,
});
};
export const RestoreToDefaultAsyncByNameAndInput = (name: string, input: TextTemplateRestoreInput) => {
return defHttp.put<void>({
url: `/api/text-templating/templates/content/${name}/restore-to-default`,
data: input,
});
};
export const UpdateAsyncByNameAndInput = (name: string, input: TextTemplateContentUpdateDto) => {
return defHttp.put<TextTemplateContentDto>({
url: `/api/text-templating/templates/content/${name}`,
data: input,
});
};