Account Doc

V3_ADD

1. 用户头像
    用户头像今后会放在阿里云上,所以:
        dev:
            http(s)://pyserver.oss-cn-hangzhou.aliyuncs.com/DEV-UH-<int: user_id>.png
        api:
            http(s)://pyserver.oss-cn-hangzhou.aliyuncs.com/LINE-UH-<int: user_id>.png
    上传的时候,非png的图片,也做png处理。

login

path: /account/login.<action>
action:
    params:
        mobile
        password
        v1_add client_id 111111
        v1_add client_name qqqqqq
action: smstoken
    params:
        mobile
        token
return:
    {
        'alc': user login token,
        v3_add "is_share_0": 0,
        v3_add "is_share_1": 0,
        v3_add "is_share_2": 0,
        v3_add "is_share_3": 0
        **user info
    }

register

path: /account/register.<action>
action:
    params:
        mobile
        token
        password
        permission
        --pid  省id
        --cid  市id
        --rekid  推荐人id
return:
    {'data': 'OK'}
action: fast
    params:
        mobile
        permission
        token
        --pid
        --cid
return:
    {'data': 'OK'}

user info

path: /account/info
params:
    alc
return:
    {
        "id": int user_id,
        "nickname": username,
        "gender": int 性别,
        "permission": int 账号权限,
        "invitation_code": int or null 邀请人ID,
        "head_img": 头像url,
        "star": int 星级,
        "mobile": str 手机号,
        "call_mobile": str 联系手机号,
        "is_vip": bool 是否VIP,
        "vip_end": str VIP到期时间,
        "real_auth_status": int 实名认证状态,
        "is_private": int 控制是否公开显示
        "withdraw_passwd": int 是否设置支付密码;0:没有 1:有
        v5_add: "pay_code": int 是否设置支付密码;0:没有 1:有 ----------------> 手势密码
        "auto_vip": int 自动续费 0:关闭  1:开启,
        "province_id": int 注册省id
    }

user info edit

path: /account/edit.<action>
action: nickname
    params:
        username
action: headerimg
    params:
        img
    return:
        {'url': path}
action: callmobile
    params:
        mobile
action: resetpassword
    params:
        mobile
        token
        password
action: switch_private  切换公开显示状态

real auth

path: /account/realauth.<action>
action: baseinfo
    params:
        realname
        idcard
action: img0
    params:
        img file
action: img1
    params:
        img file
v1_add action: img2  手持身份证
    params:
        img file
errors:
    Processing              正在处理
    Same ID Card Img        相同的图片
    Realauth In Effect      实名认证在有效期内

get vip

path: /account/get_vip
return:
    {
        'data': {
            'path': '/pay/envip?btk=*****'
        },
        'code': 901
    }

reset password

path: /account/rePassword
params:
    mobile
    token
    password

bind

path: /account/bind.<action>
action: bank
    params:
        step: -1
            return:
                {'real_name': ""}
        step: 0
            card_no: "123123123123"
            return:
                {
                    "en": "",
                    "bank_name": "",
                    "card_no": "",
                    "card_type": 1(int),
                    "sign": ""
                }
        step: 1
            mobile: 15553839052
            return:
                OK

v2_add set info

path: /account/set.<action>
action: wdcode
    params:
        wdcode 提现码
        mobile 手机号
        token 短信验证token

支付密码设置和更新

path: /account/withdraw_passwd.<action>
action: set  :首次设置密码
    params:
        wdcode  提现密码
    update :更新密码
    params:
        mobile 手机号
        token 手机验证码
        wdcode  提现密码
return:
    {
        'data':'OK',
        'code': 200
    }

用户设置自动续费

path: /account/auto_vip
return:
    {
        'data':'OK',
        'code': {'status':1}
    }

debind 解绑

path: /account/debind.<action>
action: bank
    params:
        card_no: '123123123123123'
    return:
        {"data": "OK"}

收货地址功能

path: /account/shopping_address.<string:action>
params:
    action=del #删除地址
        id 收货地址数据的id
    action=add #添加地址
        name 姓名
        mobile 联系方式
        area 所在地区
        address 详细地址
    action=update #更新地址
        id 收货地址数据的id
        name 姓名
        mobile 联系方式
        area 所在地区
        address 详细地址
    action=info #地址信息
return:
    {"data": 'OK'}

用户查看共享信息

自己:
    path: /account/share_info
    method: GET
    params:
        alc
别人:
    path: /account/share_info_other.<int:uid>.<string:pwd>
    method: GET
return:
        {
    "code": 0,
    "message": "",
    "data": {
        "nickname": "快工924",  #用户名
        "head_img":  "http://dev.zjkgwl.com/static/upload/924/49fbdbec0a66202ab23f705ab878906f.png",  #头像
        "mobile": "17621032219",
        "id": 924,  #user id
        "uid": 924, #user id
        "come_from": "df", #籍贯
        "living_plath": "df",现居住地
        "working_life": 1,工作年限
        "age": 1,年龄
        "religion": "1",宗教
        "nation": "1",民族
        "is_married": true,是否已婚(true:已婚,false:未婚)
        "height": 1,身高
        "gender": 0 女 1:男
        "history_list": [
            {
                "id": 1, #不用管
                "uid": 924,#不用管
                "company_name": "1",公司名称
                "type_work": "1",工种
                "project_name": "1",项目名称
                "start_time": "1",开工时间
                "end_time": "1",结束时间
                "total_time": "1",总时间
                "project_note": "1",项目描述
                "duty_note": "1"责任描述
            }
        ]
    }
}

查看自己的共享类型

path: /account/share_types
returns:
    {
        is_share_0: 1
        ...
    }

根据id返回用户名

path: /account/get_name/<int:id>
method:GET
returns:
    {
"code": 0,
"message": "",
"data": "微丶凉"
}

电话

path: /account/call.<int uid>
parsmas:
    alc
return:
    {"mobile": "121212121"}

account的更多相关文章

  1. 以bank account 数据为例,认识elasticsearch query 和 filter

    Elasticsearch 查询语言(Query DSL)认识(一) 一.基本认识 查询子句的行为取决于 query context filter context 也就是执行的是查询(query)还是 ...

  2. 在SharePoint 2010中,如何找回丢失的服务账号(Service Account)密码

    背景信息: 通常在SharePoint环境中我们会使用很多的服务账号来运行各种不同的服务,尤其在企业环境中,由于权限管理条例严格,这些服务账号更是只能多不能少.面对如此多的服务账号,各个企业都会有自己 ...

  3. SQL Server 2012 Managed Service Account

    原创地址:http://www.cnblogs.com/jfzhu/p/4007472.html 转载请注明出处 (一)Windows服务使用的登陆帐号 Windows服务只有登录到某一帐户的情况下才 ...

  4. Your account already has a valid iOS Distribution certificate!

    iOS 发布提交出现:Your account already has a valid iOS Distribution certificate!问题解决 转载的链接   http://www.jia ...

  5. scott/tiger登录时提醒ora-28000 the account is locked

    scott/tiger登录时提示ora-28000 the account is locked在plsql developer中要是以scott/tiger登录时提示ora-28000 the acc ...

  6. Xcode真机调试出现The account '***' has no team with ID '***'的解决方案

    前段时间,想用真机调试的时候出现 The account '***' has no team with ID '***'的问题, 以前页真机调试过,没有这种情况,于是我登陆开发者中心,进去发现说我的账 ...

  7. linux出现user account has expired解决方案

    SUSE Linux 用户user1登陆不了,确认密码没错,使用root用户登陆,su - user1 提示密码不对,passwd user1提示帐户过期user account hasexpired ...

  8. Azure China (4) 管理Azure China Storage Account

    <Windows Azure Platform 系列文章目录> Update 2015-05-10 强烈建议使用AzCopy工具,AzCopy命令行工具,是经过优化的.高性能Azure S ...

  9. Java-集合=第五题 (Map)设计Account 对象如下: private long id; private double balance; private String password; 要求完善设计,使得该Account 对象能够自动分配id。 给定一个List 如下: List list = new ArrayList(); list.add(new A

    第五题 (Map)设计Account 对象如下: private long id; private double balance; private String password; 要求完善设计,使得 ...

  10. 练习2 练习目标-使用引用类型的成员变量:在本练习中,将扩展银行项目,添加一个(客户类)Customer类。Customer类将包含一个Account对象。

    package banking; public class Customer { private String firstName; private String lastName; private ...

随机推荐

  1. 前端回顾:2016年 JavaScript 之星

    JavasScript社区在创新的道路上开足了马力,曾经流行过的也许一个月之后就过时了.2016已经结束了.你可能会想你是否错过一些重要的东西?不用担心,让我们来回顾2016年前端有哪些主流.通过比较 ...

  2. DNS Wildcard(DNS泛域名)

    在DNS中,泛域名(wildcard Resource Record)可以被认为是一种合成RR的机制,借助于它,DNS服务器可以响应本来不存在的域名的请求,它的设计初衷是用来把所有邮件都转发到一个邮件 ...

  3. 微信公众平台.net HttpClient 异步客户端

    微信公众平台.net HttpClient 异步客户端 该客户端实现了对微信公众平台的后台管理,包括获取Token,发生客服消息(文本,图片,语音,视频),自定义菜单的创建,查询,删除,查询订阅用户, ...

  4. mvc导出excel记录

    前言: 记录这篇使用记录,是为了方便以后学习查阅和让没有使用过的人了解一下,其中不足还请见谅.不是很全的文章,大神请绕行.在项目中我们或多或少的会遇到数据导出到excel表格以便线下查看或者记录一些需 ...

  5. java导出excel时合并同一列中相同内容的行

    一.有时候导出Excel时需要按类别导出,一大类下好几个小类,小类下又有好几个小小类,就像下图: 要实现这个也不难, 思路如下:按照大类来循环,如上就是按照张江校区.徐汇校区.临港校区三个大类循环,然 ...

  6. 服务器端事件发送SSE

    背景 近期有这么一个需求: 手机端需要展示一个比较大的pdf 基于手机端网络/流量/体验等考虑,希望不通过pdf下载然后展示 而是把pdf转成一张张的图片,然后再在手机上展示. 分析 pdf转图片,肯 ...

  7. int**a = new int[5][6] 怎么delete

    int **a = new int[5][6],这个根本编译不过去吧. 如果你想new一个二维数组出来,应该这样: int** a= new int*[5]; for (int i = 0; i &l ...

  8. [转*译]Networking API Improvements in Windows 10

        在当今,以云优先,移动优先技术为宗旨的时代下,大多数Apps都至少有一些与web服务或网络上其他设备的集成.这些包括应用程序,它获取天气在线内容,新闻或体育比赛的分数,媒体或下载的播客,甚至对 ...

  9. LintCode Binary Search

    For a given sorted array (ascending order) and a target number, find the first index of this number ...

  10. easyUI combobox combotree 模糊查询,带上下键选择功能,待完善。。。。

    /2017年4月9日 11:52:36 /** * combobox和combotree模糊查询 * combotree 结果带两级父节点(手动设置数量) * 键盘上下键选择叶子节点 * 键盘回车键设 ...