diff --git a/examples/user-authentication/backend/src/models/UserUtil.ts b/examples/user-authentication/backend/src/models/UserUtil.ts index 6732ada..f7d1b1e 100644 --- a/examples/user-authentication/backend/src/models/UserUtil.ts +++ b/examples/user-authentication/backend/src/models/UserUtil.ts @@ -1,5 +1,5 @@ import * as uuid from "uuid"; -import { CurrentUser } from "./CurrentUser"; +import { CurrentUser } from "../shared/models/CurrentUser"; const SSO_VALID_TIME = 86400000 * 7; diff --git a/examples/user-authentication/backend/src/models/parseCurrentUser.ts b/examples/user-authentication/backend/src/models/parseCurrentUser.ts index b5f561e..72c9c2b 100644 --- a/examples/user-authentication/backend/src/models/parseCurrentUser.ts +++ b/examples/user-authentication/backend/src/models/parseCurrentUser.ts @@ -1,6 +1,6 @@ import { HttpServer } from "tsrpc"; import { BaseRequest } from "../shared/protocols/base"; -import { CurrentUser } from "./CurrentUser"; +import { CurrentUser } from "../shared/models/CurrentUser"; import { UserUtil } from "./UserUtil"; export function parseCurrentUser(server: HttpServer) { diff --git a/examples/user-authentication/backend/src/models/CurrentUser.ts b/examples/user-authentication/backend/src/shared/models/CurrentUser.ts similarity index 100% rename from examples/user-authentication/backend/src/models/CurrentUser.ts rename to examples/user-authentication/backend/src/shared/models/CurrentUser.ts diff --git a/examples/user-authentication/backend/src/shared/protocols/serviceProto.ts b/examples/user-authentication/backend/src/shared/protocols/serviceProto.ts index b522c5d..fe4cfc2 100644 --- a/examples/user-authentication/backend/src/shared/protocols/serviceProto.ts +++ b/examples/user-authentication/backend/src/shared/protocols/serviceProto.ts @@ -34,7 +34,7 @@ export interface ServiceType { } export const serviceProto: ServiceProto = { - "version": 3, + "version": 4, "services": [ { "id": 0, @@ -254,12 +254,12 @@ export const serviceProto: ServiceProto = { "name": "user", "type": { "type": "Reference", - "target": "../../models/CurrentUser/CurrentUser" + "target": "../models/CurrentUser/CurrentUser" } } ] }, - "../../models/CurrentUser/CurrentUser": { + "../models/CurrentUser/CurrentUser": { "type": "Interface", "properties": [ { diff --git a/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts b/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts index 753fe23..a1b53b2 100644 --- a/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts +++ b/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts @@ -1,4 +1,4 @@ -import { CurrentUser } from '../../../models/CurrentUser'; +import { CurrentUser } from '../../models/CurrentUser'; import { BaseConf, BaseRequest, BaseResponse } from '../base'; export interface ReqLogin extends BaseRequest {