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:
49
backend/node_modules/express-validator/lib/middlewares/validation-chain-builders.js
generated
vendored
Normal file
49
backend/node_modules/express-validator/lib/middlewares/validation-chain-builders.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.query = exports.param = exports.header = exports.cookie = exports.body = exports.check = void 0;
|
||||
exports.buildCheckFunction = buildCheckFunction;
|
||||
const check_1 = require("./check");
|
||||
/**
|
||||
* Creates a variant of `check()` that checks the given request locations.
|
||||
*
|
||||
* @example
|
||||
* const checkBodyAndQuery = buildCheckFunction(['body', 'query']);
|
||||
*/
|
||||
function buildCheckFunction(locations) {
|
||||
return (fields, message) => (0, check_1.check)(fields, locations, message);
|
||||
}
|
||||
/**
|
||||
* 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`.
|
||||
*/
|
||||
exports.check = buildCheckFunction(['body', 'cookies', 'headers', 'params', 'query']);
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.body`.
|
||||
*/
|
||||
exports.body = buildCheckFunction(['body']);
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.cookies`.
|
||||
*/
|
||||
exports.cookie = buildCheckFunction(['cookies']);
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.headers`.
|
||||
*/
|
||||
exports.header = buildCheckFunction(['headers']);
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.params`.
|
||||
*/
|
||||
exports.param = buildCheckFunction(['params']);
|
||||
/**
|
||||
* Same as {@link check()}, but only validates `req.query`.
|
||||
*/
|
||||
exports.query = buildCheckFunction(['query']);
|
||||
Reference in New Issue
Block a user