Command.java 3.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
package com.yidianling.consultant.common.net;


import com.ydl.ydlcommon.data.http.BaseCommand;

/**
 * Created by Jim on 2018/1/11 0011.
 */

public class Command {


    //获取专家相关信息
    public static class Service extends BaseCommand {
        public String id;

        public Service(String id) {
            this.id = id;
        }

    }

    //电话倾诉列表and tag获取  同一个接口
    public static class NewCallList extends BaseCommand {

        public int page;
        public int type;
        public String name;

        public NewCallList(int page, int type) {
            this.page = page;
            this.type = type;
        }

        public NewCallList(int page, int type, String name) {
            this.page = page;
            this.type = type;
            this.name = name;
        }

    }

    //关注
    public static class FocusCmd extends BaseCommand {
        public String id;//话题id或用户uid
        public String type;//业务类型:1关注用户,2关注话题

        public FocusCmd(String id, String type) {
            this.id = id;
            this.type = type;
        }

    }


    //点赞:动态,回帖,个人主页
    public static class ZanAction extends BaseCommand {
        public String type;//业务类型:1访问用户,2动态,3话题
        public String id;//动态id,回复id,用户uid

        public ZanAction(String type, String id) {
            this.type = type;
            this.id = id;
        }

    }


    public static class ListHead extends BaseCommand {
        public ListHead() {

        }
    }

    public static class SearchDoctor extends BaseCommand {
        /**
         * 关键词
         */
        public String searchWord;
        /**
         * 类名ID
         */
        public String categorys;
        /**
         * 城市id
         */
        public int city;
        /**
         * 省份id
         */
        public int province;
        /**
         * 排序,默认 智能排序
         */
        public String reorder;
        /**
         * 咨询方式,多选,以“,”分隔连接:1,2,4,3 顺序不限
         */
        public String enquirys;
        /**
         * 咨询师年龄,多选,以“-”分隔连接:50-60-90 顺序不限
         */
        public String ages;
        /**
         * 咨询师性别,当前在线,今天有空,多选,以“,”分隔连接:1,2或者1,3,2,4,3,4 顺序不限
         */
        public String others;
        /**
         * 0按专家,1按服务:根据show_type显示不同的结构体
         */
        public int showType;
        /**
         * 页码
         */
        public int page;
    }

    public static class AdClickCount extends BaseCommand {
        public int foc_id;

        public AdClickCount(int foc_id) {
            this.foc_id = foc_id;
        }
    }

    public static class upLoadLoginStatus extends BaseCommand {
        public int os_type = 2;
        public String apiurl;
        public int errorCode;
        public String errorMsg;

        public upLoadLoginStatus(String apiurl, int errorCode, String errorMsg) {
            this.apiurl = apiurl;
            this.errorCode = errorCode;
            this.errorMsg = errorMsg;
        }

        public upLoadLoginStatus() {
        }
    }

}