'require', 'city_id' => 'require', // 'nickname' => 'require', 'gender' => 'require', 'both' => 'require', 'height' => 'require', 'weight' => 'require', 'status' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'city_id' => '城市id', // 'nickname' => '昵称', 'gender' => '1男;2女', 'both' => '出生年月', 'height' => '身高', 'weight' => '体重', 'status' => '0待审核;1已通过;2已驳回', ]; /** * @notes 添加场景 * @return TeamasterRealValidate * @author likeadmin * @date 2026/02/02 00:24 */ public function sceneAdd() { // return $this->only(['city_id','nickname','gender','both','height','weight','status']); return $this->only(['city_id','gender','both','height','weight','status']); } /** * @notes 编辑场景 * @return TeamasterRealValidate * @author likeadmin * @date 2026/02/02 00:24 */ public function sceneEdit() { // return $this->only(['id','city_id','nickname','gender','both','height','weight','status']); return $this->only(['status']); } /** * @notes 删除场景 * @return TeamasterRealValidate * @author likeadmin * @date 2026/02/02 00:24 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return TeamasterRealValidate * @author likeadmin * @date 2026/02/02 00:24 */ public function sceneDetail() { return $this->only(['id']); } }