'require', 'type' => 'require', 'one_id' => 'require', 'two_id' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'type' => '1商户2仓库', 'one_id' => '转出id', 'two_id' => '转入id', ]; /** * @notes 添加场景 * @return InventoryTransferValidate * @author admin * @date 2024/08/13 16:18 */ public function sceneAdd() { return $this->only(['one_id','two_id']); } /** * @notes 编辑场景 * @return InventoryTransferValidate * @author admin * @date 2024/08/13 16:18 */ public function sceneEdit() { return $this->only(['id','type','one_id','two_id']); } /** * @notes 删除场景 * @return InventoryTransferValidate * @author admin * @date 2024/08/13 16:18 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return InventoryTransferValidate * @author admin * @date 2024/08/13 16:18 */ public function sceneDetail() { return $this->only(['id']); } }