feat: add vehicle recharge apply submit and detail approvals
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bdd67d44d9
commit
ea8c2c0362
3 files changed
+362
-11
No files matched your search
@@ -216,6 +216,16 @@ def get_apply(
|
||||
return svc.get_apply(db, tenant_no, user, id)
|
||||
|
||||
|
||||
@apply_router.post("/{id}/submit", response_model=VehicleRechargeApplyRead)
|
||||
def submit_apply(
|
||||
id: str,
|
||||
db: Session = Depends(get_db),
|
||||
user: DbUserContext = Depends(get_db_current_user),
|
||||
) -> VehicleRechargeApplyRead:
|
||||
tenant_no = get_tenant_no(db, user.to_tenant_user_dict())
|
||||
return svc.submit_apply(db, tenant_no, user, id)
|
||||
|
||||
|
||||
@apply_router.post("/", response_model=VehicleRechargeApplyRead, status_code=status.HTTP_201_CREATED)
|
||||
def create_apply(
|
||||
payload: VehicleRechargeApplyCreate,
|
||||
|
||||
Reference in new issue
Block a user