Perf input guide (#1557)
* perf: input guide code * perf: input guide ui * Chat input guide api * Update app chat config store * perf: app chat config field * perf: app context * perf: params * fix: ts * perf: filter private config * perf: filter private config * perf: import workflow * perf: limit max tip amount
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NextApiRequest } from 'next';
|
||||
import { ApiRequestProps } from '../../type/next';
|
||||
|
||||
export type ReqHeaderAuthType = {
|
||||
cookie?: string;
|
||||
@@ -9,7 +9,7 @@ export type ReqHeaderAuthType = {
|
||||
authorization?: string;
|
||||
};
|
||||
export type AuthModeType = {
|
||||
req: NextApiRequest;
|
||||
req: ApiRequestProps;
|
||||
authToken?: boolean;
|
||||
authRoot?: boolean;
|
||||
authApiKey?: boolean;
|
||||
|
||||
@@ -45,7 +45,7 @@ const UserSchema = new Schema({
|
||||
inviterId: {
|
||||
// 谁邀请注册的
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'user'
|
||||
ref: userCollectionName
|
||||
},
|
||||
promotionRate: {
|
||||
type: Number,
|
||||
|
||||
Reference in New Issue
Block a user