25 lines
643 B
TypeScript
25 lines
643 B
TypeScript
import type { PageableList, PageableParams } from "@/shared/model";
|
|
|
|
export interface SiteAuthoritySearchParams extends PageableParams {
|
|
siteId?: string;
|
|
authrtId?: string;
|
|
}
|
|
|
|
export interface SiteAuthority {
|
|
siteId: string;
|
|
authrtId: string;
|
|
siteNm: string;
|
|
mode: string;
|
|
}
|
|
|
|
export type SiteAuthorityCreatePayload = Omit<SiteAuthority, "siteNm">;
|
|
|
|
export type SiteAuthorityList = PageableList<SiteAuthority>;
|
|
|
|
export interface SiteAuthorityService {
|
|
getSiteAuthorityList: (
|
|
params: SiteAuthoritySearchParams,
|
|
) => Promise<SiteAuthorityList>;
|
|
createSiteAuthority: (data: SiteAuthorityCreatePayload[]) => Promise<void>;
|
|
}
|