Code Monkey home page Code Monkey logo

laotao_server's Introduction

laotao_server

老饕餮服务端

后端api接口

1). 用户

  1. 注册 POST 192.168.137.97:8080/register?email=[email protected]&password=12qwas&displayName=装逼大佬

    {
        "code": 200,
        "msg": "success",
        "data": true
    }
  2. 登录 POST 192.168.137.97:8080/login?email=[email protected]&password=12qwas

    {
        "code": 200,
        "msg": "success",
        "data": true
    }
  3. 验证码(暂无)

  4. 游客登录

  5. 修改个人信息

2). 查找店铺

3). 添加店铺

4). 评价店铺

  • 获得所有评论: get 192.168.137.97:8080/shop/{shopId}/comments

    {
        "code": 200,
        "msg": "success",
        "data": {
            "content": [
                {
                    "id": 1,
                    "content": "jjjjjjjjjjjjjjjjjjjjjjj",
                    "liked": 21,
                    "userId": 1,
                    "shop": {
                        "id": 1,
                        "name": "haidilao",
                        "location": "tianjin",
                        "cost": 70,
                        "rankStar": 4,
                        "type": "huoguo",
                        "liked": 355,
                        "uploaderId": 1
                    }
                },
                {
                    "id": 2,
                    "content": "jjjjjjjjjjjfsafsdafasdfjjjjjjjjjjjj",
                    "liked": 21,
                    "userId": 2,
                    "shop": {
                        "id": 1,
                        "name": "haidilao",
                        "location": "tianjin",
                        "cost": 70,
                        "rankStar": 4,
                        "type": "huoguo",
                        "liked": 355,
                        "uploaderId": 1
                    }
                },
                {
                    "id": 3,
                    "content": "jjjjjjjjjjjfsafsdafasdfjjjjjjfdsfsafsafasjjjjjj",
                    "liked": 21,
                    "userId": 2,
                    "shop": {
                        "id": 1,
                        "name": "haidilao",
                        "location": "tianjin",
                        "cost": 70,
                        "rankStar": 4,
                        "type": "huoguo",
                        "liked": 355,
                        "uploaderId": 1
                    }
                },
                {
                    "id": 4,
                    "content": "jjjjjjjjjjjfsafafafafafafsdafasdfjjjjjjfdsfsafsafasjjjjjj",
                    "liked": 21,
                    "userId": 2,
                    "shop": {
                        "id": 1,
                        "name": "haidilao",
                        "location": "tianjin",
                        "cost": 70,
                        "rankStar": 4,
                        "type": "huoguo",
                        "liked": 355,
                        "uploaderId": 1
                    }
                },
                {
                    "id": 5,
                    "content": "jjjjjjjjjjjfsafafafafafafsdafasdfjjjjjjfdsfsafsafasjjjjjj",
                    "liked": 21,
                    "userId": 2,
                    "shop": {
                        "id": 1,
                        "name": "haidilao",
                        "location": "tianjin",
                        "cost": 70,
                        "rankStar": 4,
                        "type": "huoguo",
                        "liked": 355,
                        "uploaderId": 1
                    }
                }
            ],
            "pageable": {
                "sort": {
                    "sorted": false,
                    "unsorted": true,
                    "empty": true
                },
                "offset": 0,
                "pageSize": 20,
                "pageNumber": 0,
                "paged": true,
                "unpaged": false
            },
            "totalPages": 1,
            "totalElements": 5,
            "last": true,
            "size": 20,
            "number": 0,
            "sort": {
                "sorted": false,
                "unsorted": true,
                "empty": true
            },
            "first": true,
            "numberOfElements": 5,
            "empty": false
        }
    }
  • 添加评价: post 192.168.137.97:8080/shop/{shopId}/comments

    {
        "content": "jjjjjjjjjjjfsafsdafasdfjjjjjjfdsfsafsafasjjjjjj",
        "liked": 21,
        "userId": 2
    }
    {
        "code": 200,
        "msg": "success",
        "data": {
            "id": 5,
            "content": "jjjjjjjjjjjfsafafafafafafsdafasdfjjjjjjfdsfsafsafasjjjjjj",
            "liked": 21,
            "userId": 2,
            "shop": {
                "id": 1,
                "name": "haidilao",
                "location": "tianjin",
                "cost": 70,
                "rankStar": 4,
                "type": "huoguo",
                "liked": 355,
                "uploaderId": 1
            }
        }
    }

laotao_server's People

Contributors

qingshanyuluo avatar

Stargazers

Lexie Lee avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.