Initial commit

This commit is contained in:
zhouchengrong
2024-03-11 10:29:58 +08:00
commit bf06c7c120
15 changed files with 283 additions and 0 deletions

0
app/api/__init__.py Normal file
View File

View File

@@ -0,0 +1,16 @@
import logging
from fastapi import APIRouter
from app.service.outfit_matcher_hon.service import OutfitMatcherHon
logger = logging.getLogger()
router = APIRouter()
class Item(BaseModel)
@router.post("")
def outfit_matcher_hon():
service = OutfitMatcherHon()
logger.info("test")
return {"message": "ok"}

7
app/api/api_route.py Normal file
View File

@@ -0,0 +1,7 @@
from fastapi import APIRouter
from app.api import api_test
router = APIRouter()
router.include_router(api_test.router, tags=["test"], prefix="/test")

12
app/api/api_test.py Normal file
View File

@@ -0,0 +1,12 @@
import logging
from fastapi import APIRouter
logger = logging.getLogger()
router = APIRouter()
@router.get("")
def test():
logger.info("test")
return {"message": "ok"}