yue-library-template-simple

yue-library-template-simple

单个

在线测试 在线浏览

请求方式:GET

请求地址:http://{{ssc-demo}}/user/get

Query参数名 类型 必需 描述 示例 e.g.
id string

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": {
        "id": 25,
        "create_time": "2018-07-31T08:22:32",
        "update_time": "2019-10-12T22:46:51",
        "user_id": null,
        "role": "b2b_卖家",
        "cellphone": "18523146316",
        "password": "2eZzUNIsix73h9MmhbmVow==",
        "nickname": "0123",
        "email": null,
        "head_img": null,
        "sex": null,
        "birthday": null,
        "user_status": "正常"
    }
}
                            

分页

在线测试 在线浏览

请求方式:GET

请求地址:http://{{ssc-demo}}/user/page

Query参数名 类型 必需 描述 示例 e.g.
page string 1
limit string 10

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": [
        {
            "id": 95,
            "create_time": "2019-07-02T10:12:31",
            "update_time": "2019-07-22T16:05:40",
            "user_id": null,
            "role": "b2c_买家",
            "cellphone": "15123555303",
            "password": null,
            "nickname": "某某",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常"
        }
    ],
    "count": 43
}
                            

列表-全部

在线测试 在线浏览

请求方式:GET

请求地址:http://{{ssc-demo}}/user/listAll

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": [
        {
            "id": 10,
            "create_time": "2018-08-07T02:30:48",
            "update_time": "2019-07-16T16:50:22",
            "user_id": null,
            "role": "b2b_买家",
            "cellphone": "18523146310",
            "wx_unionid": null,
            "qq_openid": null,
            "email": null,
            "nickname": "张三丰",
            "head_img": "ss.png",
            "sex": "男",
            "birthday": null,
            "age": null,
            "user_status": "正常",
            "register_source": null
        }
    ]
}
                            

删除

在线测试 在线浏览

请求方式:DELETE

请求地址:http://{{ssc-demo}}/user/delete

Body参数名 类型 必需 描述 示例 e.g.
id string

插入数据

在线测试 在线浏览

请求方式:POST

请求地址:http://{{ssc-demo}}/user/insert

Body参数名 类型 必需 描述 示例 e.g.
cellphone string 18523146311
password string 123456
nickname string ylyue
email string yl-yue@qq.com
head_img string https://gitee.com/yl-yue/yue-library/raw/master/docs/_images/logo.png
sex string
birthday string 1996-05-15

yue-library-template-simple

分页

在线测试 在线浏览

请求方式:GET

请求地址:http://{{ssc-demo}}/userJson/page

Query参数名 类型 必需 描述 示例 e.g.
page string 1
limit string 10

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": [
        {
            "id": 95,
            "role": "b2c_买家",
            "cellphone": "15123555303",
            "password": null,
            "nickname": "某某",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2019-07-02T18:12:31.000 0800",
            "update_time": "2019-07-23T00:05:40.000 0800"
        },
        {
            "id": 134,
            "role": "b2b_买家",
            "cellphone": "15723156255",
            "password": "v0/S0Hi4OZFgycPaQ0JFPg==",
            "nickname": "abcd",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2019-07-04T18:06:46.000 0800",
            "update_time": "2019-07-05T22:27:00.000 0800"
        },
        {
            "id": 181,
            "role": "b2b_买家",
            "cellphone": "18024649918",
            "password": "uyJPQmQgEaVE99McVoV2zg==",
            "nickname": null,
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2019-07-27T01:05:00.000 0800",
            "update_time": "2019-07-27T01:05:00.000 0800"
        },
        {
            "id": 10,
            "role": "b2b_买家",
            "cellphone": "18523146310",
            "password": "uyJPQmQgEaVE99McVoV2zg==",
            "nickname": "张三丰",
            "email": null,
            "head_img": "ss.png",
            "sex": "男",
            "birthday": null,
            "user_status": "正常",
            "create_time": "2018-08-07T10:30:48.000 0800",
            "update_time": "2019-07-17T00:50:22.000 0800"
        },
        {
            "id": 18,
            "role": "b2b_卖家",
            "cellphone": "18523146311",
            "password": "8uXhwp4c3mYwizx/FKfY6wQRltvBd6Oc0qZvYZa nfQ=",
            "nickname": "测试",
            "email": null,
            "head_img": "http://www.baidu.com",
            "sex": "男",
            "birthday": null,
            "user_status": "正常",
            "create_time": "2018-07-18T17:10:46.000 0800",
            "update_time": "2019-07-01T18:11:25.000 0800"
        },
        {
            "id": 182,
            "role": "b2c_买家",
            "cellphone": "18523146311",
            "password": "2eZzUNIsix73h9MmhbmVow==",
            "nickname": null,
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2019-10-13T07:45:31.000 0800",
            "update_time": "2019-10-13T07:45:31.000 0800"
        },
        {
            "id": 20,
            "role": "b2b_买家",
            "cellphone": "18523146312",
            "password": "2eZzUNIsix73h9MmhbmVow==",
            "nickname": "宋丹丹",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2018-07-24T11:48:50.000 0800",
            "update_time": "2019-10-13T06:46:51.000 0800"
        },
        {
            "id": 184,
            "role": "b2c_买家",
            "cellphone": "18523146312",
            "password": "2eZzUNIsix73h9MmhbmVow==",
            "nickname": "ylyue",
            "email": "yl-yue@qq.com",
            "head_img": "https://gitee.com/yl-yue/yue-library/raw/master/docs/_images/logo.png",
            "sex": "男",
            "birthday": "1996-05-15",
            "user_status": "正常",
            "create_time": "2019-10-13T07:49:02.000 0800",
            "update_time": "2019-10-13T07:49:02.000 0800"
        },
        {
            "id": 21,
            "role": "b2b_买家",
            "cellphone": "18523146313",
            "password": "2eZzUNIsix73h9MmhbmVow==",
            "nickname": "张双双",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2018-07-26T15:25:56.000 0800",
            "update_time": "2019-10-13T06:46:51.000 0800"
        },
        {
            "id": 23,
            "role": "b2c_买家",
            "cellphone": "18523146314",
            "password": "2eZzUNIsix73h9MmhbmVow==",
            "nickname": "白俊毅",
            "email": null,
            "head_img": null,
            "sex": null,
            "birthday": null,
            "user_status": "正常",
            "create_time": "2018-07-31T00:17:45.000 0800",
            "update_time": "2019-10-13T06:46:51.000 0800"
        }
    ],
    "count": 42
}
                            

插入数据

在线测试 在线浏览

请求方式:POST

请求地址:http://{{ssc-demo}}/userJson/insert

Body参数名 类型 必需 描述 示例 e.g.
cellphone string 18523146311
password string 123456
nickname string ylyue
email string yl-yue@qq.com
head_img string https://gitee.com/yl-yue/yue-library/raw/master/docs/_images/logo.png
sex string
birthday string 1996-05-15

yue-library-template-simple

登出

在线测试 在线浏览

请求方式:GET

请求地址:http://{{ssc-demo}}/logout

登录

在线测试 在线浏览

请求方式:POST

请求地址:http://{{ssc-demo}}/open/login

Body参数名 类型 必需 描述 示例 e.g.
cellphone string 18523146316
password string 123456

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": {
        "id": 25,
        "create_time": "2018-07-31T08:22:32",
        "update_time": "2019-10-12T22:46:51",
        "user_id": null,
        "role": "b2b_卖家",
        "cellphone": "18523146316",
        "wx_unionid": null,
        "qq_openid": null,
        "email": null,
        "nickname": "0123",
        "head_img": null,
        "sex": null,
        "birthday": null,
        "age": null,
        "user_status": "正常",
        "register_source": null
    }
}
                            

注册

在线测试 在线浏览

请求方式:POST

请求地址:http://{{ssc-demo}}/open/register

Body参数名 类型 必需 描述 示例 e.g.
cellphone string 18523146311
password string 123456
nickname string ylyue
email string yl-yue@qq.com
head_img string https://gitee.com/yl-yue/yue-library/raw/master/docs/_images/logo.png
sex string
birthday string 1996-05-15

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": 182
}
                            

yue-library-test

yue-library-test

exception

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/exception/exception

Body参数名 类型 必需 描述 示例 e.g.
name string
birthday string
idcard string
age string
email string
phone string
qq string

restful

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/restful/valid

Body参数名 类型 必需 描述 示例 e.g.
name string
birthday string
idcard string
age string
email string
cellphone string
qq string

yue-library-test

requestParam

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/requestParam

Body参数名 类型 必需 描述 示例 e.g.
a string
b string

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": {
        "a": "aa",
        "b": "bb"
    }
}
                            

yue-library-test

test

在线测试 在线浏览

请求方式:GET

请求地址:http://{{yue-library-template}}/test/get

yue-library-test

valid

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/validation/valid

Body参数名 类型 必需 描述 示例 e.g.
name string
birthday string
idcard string
age string
email string
phone string
qq string

validatorValid

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/validation/validatorValid

Body参数名 类型 必需 描述 示例 e.g.
name string
birthday string
idcard string
age string
email string
phone string
qq string

validatorParam

在线测试 在线浏览

请求方式:POST

请求地址:http://{{yue-library-template}}/validation/validatorParam

Body参数名 类型 必需 描述 示例 e.g.
name string
birthday string
idcard string
age string
email string
phone string
qq string

yue-open-devops-deploy

重新部署

在线测试 在线浏览

请求方式:PUT

请求地址:http://{{yue-open-devops-deploy}}/devops/redeploy

Body参数名 类型 必需 描述 示例 e.g.
workloadApiUrl string https://10.100.3.153/v3/project/c-prnj6:p-8974z/workloads/deployment:b2b:b2b-admin
envEnum string

返回示例:

                                {
    "code": 200,
    "msg": "成功",
    "flag": true,
    "data": "【钉钉】通知结果:{\"errcode\":0,\"success\":true,\"errmsg\":\"ok\"}"
}
                            

SEO

更新数据

在线测试 在线浏览

请求方式:POST

请求地址:http://data.zz.baidu.com/update?site=ylyue.cn&token=2YMkzDG7Si4UzDeE

推送数据

在线测试 在线浏览

请求方式:POST

请求地址:http://data.zz.baidu.com/urls

Query参数名 类型 必需 描述 示例 e.g.
site string
token string

附录

环境变量

本地环境
变量名 变量值
yue-library-template localhost:8080
yue-open-devops-deploy localhost:8080
yue-library-template-simple localhost:8080
开发环境
变量名 变量值
yue-open-devops-deploy 10.100.3.163:9999
在线编辑
Top