// // Copyright (C) 2024 veypi // 2024-10-11 14:36:07 // Distributed under terms of the MIT license. // import webapi from "./webapi" import * as models from "./models" export function Get(role_id: string) { return webapi.Get(`/role/${role_id}`, { }) } export interface PatchOpts { name?: string des?: string app_id?: string } export function Patch(role_id: string, json: PatchOpts) { return webapi.Patch(`/role/${role_id}`, { json }) } export function Delete(role_id: string) { return webapi.Delete(`/role/${role_id}`, { }) } export interface PostOpts { name: string des: string app_id: string } export function Post(json: PostOpts) { return webapi.Post(`/role`, { json }) } export interface ListOpts { name?: string } export function List(json: ListOpts) { return webapi.Get<[models.Role]>(`/role`, { json }) }