修复user-authenication案例CurrentUser不在shared文件夹导致前端PtlLogin.ts引用报错问题

This commit is contained in:
Wetiontop 2021-12-26 18:15:38 +08:00
parent 6517259363
commit 93f17f90e0
5 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import * as uuid from "uuid"; import * as uuid from "uuid";
import { CurrentUser } from "./CurrentUser"; import { CurrentUser } from "../shared/models/CurrentUser";
const SSO_VALID_TIME = 86400000 * 7; const SSO_VALID_TIME = 86400000 * 7;

View File

@ -1,6 +1,6 @@
import { HttpServer } from "tsrpc"; import { HttpServer } from "tsrpc";
import { BaseRequest } from "../shared/protocols/base"; import { BaseRequest } from "../shared/protocols/base";
import { CurrentUser } from "./CurrentUser"; import { CurrentUser } from "../shared/models/CurrentUser";
import { UserUtil } from "./UserUtil"; import { UserUtil } from "./UserUtil";
export function parseCurrentUser(server: HttpServer) { export function parseCurrentUser(server: HttpServer) {

View File

@ -34,7 +34,7 @@ export interface ServiceType {
} }
export const serviceProto: ServiceProto<ServiceType> = { export const serviceProto: ServiceProto<ServiceType> = {
"version": 3, "version": 4,
"services": [ "services": [
{ {
"id": 0, "id": 0,
@ -254,12 +254,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
"name": "user", "name": "user",
"type": { "type": {
"type": "Reference", "type": "Reference",
"target": "../../models/CurrentUser/CurrentUser" "target": "../models/CurrentUser/CurrentUser"
} }
} }
] ]
}, },
"../../models/CurrentUser/CurrentUser": { "../models/CurrentUser/CurrentUser": {
"type": "Interface", "type": "Interface",
"properties": [ "properties": [
{ {

View File

@ -1,4 +1,4 @@
import { CurrentUser } from '../../../models/CurrentUser'; import { CurrentUser } from '../../models/CurrentUser';
import { BaseConf, BaseRequest, BaseResponse } from '../base'; import { BaseConf, BaseRequest, BaseResponse } from '../base';
export interface ReqLogin extends BaseRequest { export interface ReqLogin extends BaseRequest {