import { defHttp } from '/@/utils/http/axios'; import { ApiScope, ApiScopeCreate, ApiScopeUpdate, GetApiScopePagedRequest, } from './model'; export const create = (input: ApiScopeCreate) => { return defHttp.post({ url: '/api/identity-server/api-scopes', data: input, }); }; export const update = (id: string, input: ApiScopeUpdate) => { return defHttp.put({ url: `/api/identity-server/api-scopes/${id}`, data: input, }); }; export const deleteById = (id: string) => { return defHttp.delete({ url: `/api/identity-server/api-scopes/${id}`, }); }; export const get = (id: string) => { return defHttp.get({ url: `/api/identity-server/api-scopes/${id}`, }); }; export const getList = (input: GetApiScopePagedRequest) => { return defHttp.get>({ url: '/api/identity-server/api-scopes', params: input, }); };