'id', 'desc' => 'ID', 'type' => 'int'], ['name' => 'financial_record_sn', 'desc' => '流水号', 'type' => 'string'], ['name' => 'order_sn', 'desc' => '订单号', 'type' => 'string'], ['name' => 'number', 'desc' => '金额', 'type' => 'float'], ['name' => 'create_time', 'desc' => '创建时间', 'type' => 'string'], ['name' => 'nickname', 'desc' => '用户昵称', 'type' => 'string'], ['name' => 'staff_name', 'desc' => '店员', 'type' => 'string'], ['name' => 'store_name', 'desc' => '店铺名称', 'type' => 'string'], ['name' => 'pay_type_name', 'desc' => '支付方式', 'type' => 'string'], ['name' => 'financial_type_name', 'desc' => '流水类型', 'type' => 'string'], ['name' => 'remark', 'desc' => '备注', 'type' => 'string'], ]), ] 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); } }