18 lines
472 B
Python
18 lines
472 B
Python
from fastapi import FastAPI
|
|
|
|
from app.model.ReimburseModel import ReimburseService
|
|
from app.utils.db_utils import AsyncSessionDep
|
|
|
|
|
|
def add_approve_route(app: FastAPI):
|
|
# 提交报销单接口
|
|
@app.post('/submit_reimburse')
|
|
async def submit_reimburse(reimburse: dict, session: AsyncSessionDep):
|
|
reimburse_id = reimburse.get('id')
|
|
reimburse_cls = await ReimburseService.query_item(
|
|
session=session,
|
|
row_dict={"id": reimburse_id}
|
|
)
|
|
|
|
return
|