'require', 'title' => 'require', 'from_uid' => 'require', 'to_uid' => 'require', 'read_time' => 'require', 'create_time' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'title' => '消息主题', 'from_uid' => '发送人id', 'to_uid' => '接收人id', 'read_time' => '阅读时间', 'create_time' => '创建时间', ]; /** * @notes 添加场景 * @return OaMessageValidate * @author likeadmin * @date 2024/05/29 14:04 */ public function sceneAdd() { return $this->only(['title','from_uid','to_uid','read_time','create_time']); } /** * @notes 编辑场景 * @return OaMessageValidate * @author likeadmin * @date 2024/05/29 14:04 */ public function sceneEdit() { return $this->only(['id','title','from_uid','to_uid','read_time','create_time']); } /** * @notes 删除场景 * @return OaMessageValidate * @author likeadmin * @date 2024/05/29 14:04 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return OaMessageValidate * @author likeadmin * @date 2024/05/29 14:04 */ public function sceneDetail() { return $this->only(['id']); } }