{"id":24993798,"url":"https://github.com/airbozh/gftb","last_synced_at":"2025-09-10T07:46:44.445Z","repository":{"id":39948351,"uuid":"492664947","full_name":"AirboZH/GFTB","owner":"AirboZH","description":"不会告诉你GFTB是干翻淘宝的意思（笑","archived":false,"fork":false,"pushed_at":"2025-07-21T12:17:19.000Z","size":132,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T12:10:02.659Z","etag":null,"topics":["jwt","spring-mvc","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AirboZH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-16T02:56:29.000Z","updated_at":"2023-02-01T05:53:53.000Z","dependencies_parsed_at":"2025-02-04T14:37:42.528Z","dependency_job_id":"066cbe53-eacc-427d-abe9-121a5f6ba736","html_url":"https://github.com/AirboZH/GFTB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AirboZH/GFTB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirboZH%2FGFTB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirboZH%2FGFTB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirboZH%2FGFTB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirboZH%2FGFTB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AirboZH","download_url":"https://codeload.github.com/AirboZH/GFTB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AirboZH%2FGFTB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274427574,"owners_count":25283225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jwt","spring-mvc","vue"],"created_at":"2025-02-04T14:28:12.823Z","updated_at":"2025-09-10T07:46:44.360Z","avatar_url":"https://github.com/AirboZH.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaWeb实验二—购物系统-GFTB\n\n## 技术\n\n### 前端\n\n- Vue\n\n- Element UI\n\n- JWT\n\n### 后端\n\n- Spring\n- Spring MVC\n- Mybatis\n- RestFul 接口\n\n## 功能\n\n### 客户端\n\n#### 首页\n\n##### \t\t热门Tag\n\n​\t\t按照销量排序\n\n##### \t\t轮播图\n\n​\t\t轮播销量前五\n\n##### \t个人信息\n\n###### \t已登录\n\n- 头像\n- 昵称\n- 我的订单\n- 购物车\n- 我的钱包\n\n###### \t未登录\n\n- LOGO\n- Hi~欢迎来到GFTB\n- 登录注册\n\n##### \t热门商品\n\n​\t\t轮播销量五到二十五\n\n#### 我的\n\n##### \t个人信息\n\n​\t\t编辑个人资料\n\n##### \t购物车\n\n​\t\t加入购物车的物品\n\n##### \t我的订单\n\n​\t\t历史购物记录\n\n#### 详情页\n\n​\t商品详情\n\n### 后台\n\n#### 管理员\n\n- RUD用户\n- RUD商品\n- RUD订单\n- RUD钱包\n\n## 接口\n\n### 所有接口\n\n#### 接口路径\n\n`/api`\n\n#### 响应信息\n\n| 响应参数 | 备注               |\n| -------- | ------------------ |\n| code     | 0=Fail， 1=Success |\n| Msg      | String             |\n\n### 用户\t`User`\n\n#### 验证登录状态\n\n`GET` /account/:token\n\n#### 登录\n\n`POST` /account\n\n#### 退出登录\n\n`DELETE` /account\n\n#### 注册+\n\n`POST` /user\n\n#### 更新资料+\n\n`PATCH` /user/:userId\n\n#### getUserById+\n\n`GET` /user/:userId\n\n#### getUsers+\n\n`GET` /user\n\n#### 删除（管理员权限）+\n\n`DELETE` /user/:id\n\n### 商品\t`Commodity`\n\n#### 上新\n\n`POST` /commodity\n\n#### getCommodityById\n\n`GET` /commodity/:commodityId\n\n#### 更新\n\n`PATCH `/commodity/:commodityId\n\n#### 删除\n\n`DELETE `/commodity/:commodityId\n\n购物车\t`Shopping`\n\n#### 添加\n\n`POST` /shopping\n\n#### getShoppingByUserId\n\n`GET` /shopping/:userId\n\n#### 删除\n\n`DELETE `/shopping/:shoppingId\n\n### 订单\t`Oder`\n\n#### 新建\n\n`POST` /oder\n\n#### getOderByUserId\n\n`GET` /oder/:oderId\n\n#### 更新\n\n`PATCH` /oder/:oderId\n\n#### 删除\n\n`DELETE `/oder/:oderId\n\n### 其他 `Else`\n\n#### 获得100块钱\n\n`GET` /money\n\n\n\n## 表设计\n\n### 用户表 `User`\n\n| 字段       | 类型        | 其他                        |\n| ---------- | ----------- | --------------------------- |\n| userId     | int         | Primary Key Unique Required |\n| username   | varchar(20) | Required                    |\n| password   | varchar(30) | Required                    |\n| role       | int         | Required defalut 0          |\n| address    | varchar(50) |                             |\n| money      | float       | defalut 0                   |\n| createDate | timestamp   | Required                    |\n| updataDate | timestamp   | Required                    |\n\n### 商品表 `Commodity`\n\n| 字段            | 类型         | 其他                        |\n| --------------- | ------------ | --------------------------- |\n| commodityId     | int          | Primary Key Unique Required |\n| commodityName   | varchar(30)  | Required                    |\n| commodityPic    | varchar(200) |                             |\n| commodityTag    | varchar(8)   |                             |\n| commodityDetail | text         |                             |\n| commodityPrice  | float        |                             |\n| commodityShow   | int          | defalut 1                   |\n\n### 购物车表 `Shopping`\n\n| 字段        | 类型 | 其他                        |\n| ----------- | ---- | --------------------------- |\n| shoppingId  | int  | Primary Key Unique Required |\n| commodityId | int  | Required                    |\n| userId      | int  | Required                    |\n\n### 订单表 `Oder`\n\n| 字段        | 类型        | 其他                            |\n| ----------- | ----------- | ------------------------------- |\n| oderId      | int         | Primary Key Unique Required     |\n| commodityId | int         | Required                        |\n| customerId  | int         | Required                        |\n| oderNumber   | int       | Required                        |\n| oderAddress | varchar(50) | Required                        |\n| oderStatus  | int         | 0已取消 1未发货 2已发货 3已收货 |\n| oderShow    | int         | Required defalut 1              |\n| createDate  | timestamp   | Required                        |\n| updataDate  | timestamp   | Required                        |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairbozh%2Fgftb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairbozh%2Fgftb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairbozh%2Fgftb/lists"}