multi-store/app/store/controller/finance/StoreBillController.php
2024-06-07 14:22:28 +08:00

55 lines
2.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\store\controller\finance;
use app\admin\lists\store_finance_flow\StoreFinanceFlowLists;
use app\common\controller\Definitions;
use app\common\lists\StoreBillLists;
use app\store\controller\BaseAdminController;
use hg\apidoc\annotation as ApiDoc;
#[ApiDoc\title('账单记录')]
class StoreBillController extends BaseAdminController
{
#[
ApiDoc\Title('列表'),
ApiDoc\url('/store/finance/storeBill/lists'),
ApiDoc\Method('GET'),
ApiDoc\NotHeaders(),
ApiDoc\Author('中国队长'),
ApiDoc\Query(name: 'type', type: 'int', require: false, desc: '类型1日账单2周账单3月账单'),
ApiDoc\Query(name: 'start_time', type: 'string', require: false, desc: '开始时间'),
ApiDoc\Query(name: 'end_time', type: 'string', require: false, desc: '结束时间'),
ApiDoc\Query(name: 'export', type: 'int', require: false, desc: '是否导出2是'),
ApiDoc\Header(ref: [Definitions::class, "token"]),
ApiDoc\Query(ref: [Definitions::class, "page"]),
ApiDoc\ResponseSuccess("data", type: "array"),
]
public function lists()
{
return $this->dataLists(new StoreBillLists());
}
#[
ApiDoc\Title('详情'),
ApiDoc\url('/store/finance/storeBill/detail'),
ApiDoc\Method('GET'),
ApiDoc\NotHeaders(),
ApiDoc\Author('中国队长'),
ApiDoc\Param(name: 'id', type: 'int', require: true, desc: 'id'),
ApiDoc\Query(name: 'date_type', type: 'int', require: false, desc: '日期类型1日账单2周账单3月账单'),
ApiDoc\Query(name: 'date', type: 'string', require: false, desc: '日期日账单2021-01-01周账单2024-W23月账单2021-01'),
ApiDoc\Query(name: 'staff_id', type: 'int', require: false, desc: '店员id'),
ApiDoc\Query(name: 'keyword', type: 'string', require: false, desc: '流水号/用户昵称'),
ApiDoc\Header(ref: [Definitions::class, "token"]),
ApiDoc\Query(ref: [Definitions::class, "page"]),
ApiDoc\ResponseSuccess("data", type: "array"),
]
public function detail()
{
return $this->dataLists(new StoreFinanceFlowLists());
}
}