'require', 'cid' => 'require', 'title' => 'require|max:100', 'content' => 'require', // 'regTime' => 'require', ]; protected $message = [ 'id.require' => '参数缺失', 'cid.require' => '请输入区服ID', 'title.length' => '标题长度不超过100个字符', 'content.require' => '请输入邮件内容', // 'regTime.require' => '选择领取的账号注册时间', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'cid' => '区服ID', 'title' => '邮件标题', 'content' => '邮件内容', 'at' => '创建时间', 'rewards' => '奖励', 'regTime' => '领取注册时间', ]; /** * @notes 添加场景 * @return MailValidate * @author likeadmin * @date 2024/03/12 11:18 */ public function sceneAdd() { return $this->only(['cid', 'title', 'type', 'content', 'at', 'rewards', 'regTime']); } /** * @notes 编辑场景 * @return MailValidate * @author likeadmin * @date 2024/03/12 11:18 */ public function sceneEdit() { return $this->only(['id', 'cid', 'title', 'type', 'content', 'at', 'rewards', 'regTime']); } /** * @notes 删除场景 * @return MailValidate * @author likeadmin * @date 2024/03/12 11:18 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return MailValidate * @author likeadmin * @date 2024/03/12 11:18 */ public function sceneDetail() { return $this->only(['id']); } }