Merge pull request #2 from wetiontop/main
修复user-authenication案例CurrentUser不在shared文件夹导致前端PtlLogin.ts引用报错问题
This commit is contained in:
commit
748d64254e
@ -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;
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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": [
|
||||
{
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user