multi-store/app/store/controller/finance/FinanceController.php

42 lines
1.2 KiB
PHP

<?php
namespace app\store\controller\finance;
use app\common\logic\StoreFinanceFlowLogic;
use app\store\controller\BaseAdminController;
use app\store\lists\store_finance_flow\StoreFinanceFlowLists;
// #[ApiDoc\title('财务')]
class FinanceController extends BaseAdminController
{
/**
* 门店流水
*/
public function lists()
{
return $this->dataLists(new StoreFinanceFlowLists());
}
// #[
// ApiDoc\Title('备注'),
// ApiDoc\url('/store/finance/finance/remark'),
// ApiDoc\Method('POST'),
// ApiDoc\NotHeaders(),
// ApiDoc\Author('中国队长'),
// ApiDoc\Param(name: 'id', type: 'int', require: true, desc: 'id'),
// ApiDoc\Param(name: 'remark', type: 'string', require: true, desc: '备注'),
// ApiDoc\Header(ref: [Definitions::class, "token"]),
// ApiDoc\ResponseSuccess("data", type: "array"),
// ]
public function remark(StoreFinanceFlowLogic $logic)
{
$id = $this->request->post('id');
$remark = $this->request->post('remark');
$logic->remark($id, $remark);
return $this->success('操作成功', [], 1, 1);
}
}