fix: 修复配额说明重复和undefined问题
- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
43
backend/node_modules/express-validator/lib/middlewares/validation-chain-builders.d.ts
generated
vendored
Normal file
43
backend/node_modules/express-validator/lib/middlewares/validation-chain-builders.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { ErrorMessage, FieldMessageFactory, Location } from '../base';
|
||||
/**
|
||||
* Creates a variant of `check()` that checks the given request locations.
|
||||
*
|
||||
* @example
|
||||
* const checkBodyAndQuery = buildCheckFunction(['body', 'query']);
|
||||
*/
|
||||
export declare function buildCheckFunction(locations: Location[]): (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Creates a middleware/validation chain for one or more fields that may be located in
|
||||
* any of the following:
|
||||
*
|
||||
* - `req.body`
|
||||
* - `req.cookies`
|
||||
* - `req.headers`
|
||||
* - `req.params`
|
||||
* - `req.query`
|
||||
*
|
||||
* @param fields a string or array of field names to validate/sanitize
|
||||
* @param message an error message to use when failed validations don't specify a custom message.
|
||||
* Defaults to `Invalid Value`.
|
||||
*/
|
||||
export declare const check: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.body`.
|
||||
*/
|
||||
export declare const body: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.cookies`.
|
||||
*/
|
||||
export declare const cookie: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.headers`.
|
||||
*/
|
||||
export declare const header: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.params`.
|
||||
*/
|
||||
export declare const param: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.query`.
|
||||
*/
|
||||
export declare const query: (fields?: string | string[], message?: FieldMessageFactory | ErrorMessage) => import("..").ValidationChain;
|
||||
Reference in New Issue
Block a user