Merge pull request #2 from wetiontop/main

修复user-authenication案例CurrentUser不在shared文件夹导致前端PtlLogin.ts引用报错问题
This commit is contained in:
King Wang 2021-12-26 21:50:36 +08:00 committed by GitHub
commit 748d64254e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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) {

View File

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

View File

@ -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 {