Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /** * @packageDocumentation * @module api.functional.users.me.role * @nestia Generated by Nestia - https://github.com/samchon/nestia */ //================================================================ import { Fetcher } from "@nestia/fetcher"; import type { IConnection } from "@nestia/fetcher"; import typia from "typia"; import type { IUserController } from "./../../../../../interface/user/presentation/index"; /** * 내 권한 수정 API * * @tag users * @param connection connection Information of the remote HTTP(s) server with headers (+encryption password) * @param body 변경할 권한 정보를 포함 * @returns 아무것도 반환하지 않습니다. * @throw 401 로그인이 필요합니다. * * @controller UserController.setRole() * @path PATCH /users/me/role * @nestia Generated by Nestia - https://github.com/samchon/nestia */ export function setRole ( connection: IConnection, body: IUserController.SetRoleBody ): Promise<void> { return Fetcher.fetch ( connection, setRole.ENCRYPTED, setRole.METHOD, setRole.path(), body, setRole.stringify ); } export namespace setRole { export type Input = IUserController.SetRoleBody; export const METHOD = "PATCH" as const; export const PATH: string = "/users/me/role"; export const ENCRYPTED: Fetcher.IEncrypted = { request: false, response: false, }; export function path(): string { return `/users/me/role`; } export const stringify = typia.createAssertStringify<Input>(); } |