# fastapi-test **Repository Path**: baigqRepository/fastapi-test ## Basic Information - **Project Name**: fastapi-test - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-24 - **Last Updated**: 2025-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README pip install DBUtils pip install pymysql pip install fastapi pip install uvicorn pip install jwt pip install python-jose wss_user_account 账户表 es_goods1 商品信息表 1、测试接口 /api/hello 正常返回,说明服务正常 1、登录接口 ,登录成功返回token http://localhost:8123/api/login post body json { "username" : "xxx", "password" : "xxx" } 10000 成功 10003 用户名或密码错误 { "code": 10000, "msg": "ok", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTU5NjA0OTcuMzY5ODg5LCJzdWIiOiJiYWlkYWl5aWp1IiwidWlkIjoiYmdxIn0.dgPwGGpyR_eFdxFSqnDxG572kU6gXG89Tage4SCu-MU" } 2、拿着正确token,才能访问 商品信息接口 http://localhost:8123/api/goods/list get header Authorization : token值 { }