><a class="header-anchor" href="#模型验证" aria-hidden="true">#</a> 模型验证</h1><div class="custom-container tip"><p class="custom-container-title">ApiCheckModel</p><p>1、[ApiCheckModel] 附加到 Action，用于验证函数入参的 模型验证</p><p>2、实体模型中 [Required] 用于验证字段</p></div><div class="language-csharp line-numbers-mode" data-ext="cs"><pre class="language-csharp"><code><span class="token punctuation">[</span><span class="token attribute"><span class="token class