这是基于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.
 
 
 
 
 
 

51 lines
1.3 KiB

import { defAbpHttp } from '/@/utils/http/abp';
import {
OpenIddictAuthorizationDto,
OpenIddictAuthorizationGetListInput,
} from './model';
import { PagedResultDto } from '../../model/baseModel';
const remoteServiceName = 'AbpOpenIddict';
const controllerName = 'OpenIddictAuthorization';
export const getById = (id: string) => {
return defAbpHttp.request<OpenIddictAuthorizationDto>({
service: remoteServiceName,
controller: controllerName,
action: 'GetAsync',
params: {
id: id,
},
});
};
// export const getList = (input: OpenIddictAuthorizationGetListInput) => {
// return defAbpHttp.pagedRequest<OpenIddictAuthorizationDto>({
// service: remoteServiceName,
// controller: controllerName,
// action: 'GetListAsync',
// params: {
// input: input,
// },
// });
// };
export const getList = (input: OpenIddictAuthorizationGetListInput) => {
return defAbpHttp.get<PagedResultDto<OpenIddictAuthorizationDto>>({
url: '/api/openiddict/authorizations',
params: input,
}, {
withToken: false
});
};
export const deleteById = (id: string) => {
return defAbpHttp.request<void>({
service: remoteServiceName,
controller: controllerName,
action: 'DeleteAsync',
params: {
id: id,
},
});
};