## Package Import ##
from fastapi import APIRouter, Body
from fastapi.param_functions import Depends
## AppCode Import ##
from Server.Controller.TransactionController import *
from Server.Utility.JWT import JWTBearer

###############################################################################

TransactionRoute = APIRouter()

###############################################################################

@TransactionRoute.post("/transaction/insert")
async def insert_transaction(body: TransactionCreateRequestModel) -> BaseOutputModel:
    return await transaction_new(body);

@TransactionRoute.post("/transaction/get")
async def insert_transaction(body: TransactionGetRequestModel) -> BaseOutputModel:
    return await transaction_getall(body);

@TransactionRoute.post("/transaction/getspecific")
async def insert_transaction(body: TransactionSpecificRequestMoodel) -> BaseOutputModel:
    return await transaction_get_specific(body)