- 1 {
- 2 "apiVersion":"0.2",
- 3 "swaggerVersion":"1.1",
- 4 "apis":[
- 5 {
- 6 "path":"/fellow.{format}",
- 7 "description":"会员详情"
- 8 },
- 9 {
- 10 "path":"/red_packet.{format}",
- 11 "description":"红包"
- 12 }
- 13
- 14 ]
- 15 }
- 1 {
- 2 "apiVersion":"0.2",
- 3 "swaggerVersion":"1.1",
- 4 "resourcePath":"/",
- 5 "apis":[
- 6 {
- 7 "path":"/fellow_info",
- 8 "operations":[
- 9 {
- 10 "description":"",
- 11 "updateTime":"2018/4/12 22:17",
- 12 "httpMethod":"GET",
- 13 "summary":"会员资料",
- 14 "apiStatus":2,
- 15 "reviser":"完成",
- 16 "responseClass":"void",
- 17 "nickname":"test0",
- 18 "revisionHighlight":true,
- 19 "fieldDesc":{
- 20 "result@string":"请求返回的状态1成功0失败",
- 21 "message@string":"提示信息",
- 22 "data@string":"返回的数据",
- 23 "nickname@string":"昵称",
- 24 "sex@string":"性别",
- 25 "tel@string":"手机号",
- 26 "label@string":"标签",
- 27 "remark@string":"备注",
- 28 "industry@string":"行业",
- 29 "company@string":"所在公司",
- 30 "position@string":"职位",
- 31 "region@string":"地区",
- 32 "email@string":"邮箱",
- 33 "qq_account@string":"QQ号",
- 34 "wx_account@string":"微信号",
- 35 "identity@string":"身份"
- 36
- 37 },
- 38 "parameters":[
- 39
- 40 {
- 41 "description":"用户id",
- 42 "paramType":"body",
- 43 "required":true,
- 44 "allowMultiple":false,
- 45 "dataType":"uid"
- 46 }
- 47 ]
- 48 }
- 49 ]
- 50 },
- 51 {
- 52 "path":"/upd_fellow_info",
- 53 "operations":[
- 54 {
- 55 "description":"",
- 56 "updateTime":"2018/4/12 22:17",
- 57 "httpMethod":"GET",
- 58 "summary":"编辑会员资料",
- 59 "apiStatus":2,
- 60 "reviser":"完成",
- 61 "responseClass":"void",
- 62 "nickname":"test1",
- 63 "revisionHighlight":true,
- 64 "fieldDesc":{
- 65 "result@string":"请求返回的状态1成功0失败",
- 66 "message@string":"提示信息",
- 67 "data@string":"返回的数据"
- 68
- 69 },
- 70 "parameters":[
- 71
- 72 {
- 73 "description":"用户id",
- 74 "paramType":"body",
- 75 "required":true,
- 76 "allowMultiple":false,
- 77 "dataType":"uid",
- 78 "defaultValue":"81"
- 79 },
- 80 {
- 81 "description":"代理商id",
- 82 "paramType":"body",
- 83 "required":true,
- 84 "allowMultiple":false,
- 85 "dataType":"aid",
- 86 "defaultValue":"164"
- 87 },
- 88 {
- 89 "description":"姓名",
- 90 "paramType":"body",
- 91 "required":false,
- 92 "allowMultiple":false,
- 93 "dataType":"nickname",
- 94 "defaultValue":"邓丽君"
- 95 },
- 96 {
- 97 "description":"性别(填男,女,未知)",
- 98 "paramType":"body",
- 99 "required":false,
- 100 "allowMultiple":false,
- 101 "dataType":"sex",
- 102 "defaultValue":"女"
- 103 },
- 104 {
- 105 "description":"手机号",
- 106 "paramType":"body",
- 107 "required":false,
- 108 "allowMultiple":false,
- 109 "dataType":"tel",
- 110 "defaultValue":"13800138000"
- 111 },
- 112 {
- 113 "description":"标签,(传标签名,多个标签时候用,分开)",
- 114 "paramType":"body",
- 115 "required":false,
- 116 "allowMultiple":false,
- 117 "dataType":"label",
- 118 "defaultValue":"经理,2月生日"
- 119 },
- 120 {
- 121 "description":"备注",
- 122 "paramType":"body",
- 123 "required":false,
- 124 "allowMultiple":false,
- 125 "dataType":"remark",
- 126 "defaultValue":"她是好人我是好人这是备注"
- 127 },
- 128 {
- 129 "description":"行业(传行业id)",
- 130 "paramType":"body",
- 131 "required":false,
- 132 "allowMultiple":false,
- 133 "dataType":"industry",
- 134 "defaultValue":"4"
- 135 },
- 136 {
- 137 "description":"公司",
- 138 "paramType":"body",
- 139 "required":false,
- 140 "allowMultiple":false,
- 141 "dataType":"company",
- 142 "defaultValue":"嘻哈唱片有限公司"
- 143 },
- 144 {
- 145 "description":"职位",
- 146 "paramType":"body",
- 147 "required":false,
- 148 "allowMultiple":false,
- 149 "dataType":"position",
- 150 "defaultValue":"演员"
- 151 },
- 152 {
- 153 "description":"地区",
- 154 "paramType":"body",
- 155 "required":false,
- 156 "allowMultiple":false,
- 157 "dataType":"region",
- 158 "defaultValue":"香港某条街"
- 159 },
- 160 {
- 161 "description":"邮箱",
- 162 "paramType":"body",
- 163 "required":false,
- 164 "allowMultiple":false,
- 165 "dataType":"email",
- 166 "defaultValue":"6969888@qq.com"
- 167 },
- 168 {
- 169 "description":"QQ号",
- 170 "paramType":"body",
- 171 "required":false,
- 172 "allowMultiple":false,
- 173 "dataType":"qq_account",
- 174 "defaultValue":"6969888"
- 175 },
- 176 {
- 177 "description":"微信号",
- 178 "paramType":"body",
- 179 "required":false,
- 180 "allowMultiple":false,
- 181 "dataType":"wx_account",
- 182 "defaultValue":"DLJ_6969888"
- 183 }
- 184
- 185 ]
- 186 }
- 187 ]
- 188 }
- 189
- 190
- 191
- 192 ]
- 193 }
fieldDesc:接口返回的数据,一行数据表示一个字段,举例:"result@string":"请求返回的状态1成功0失败",表示返回字段result 数据类型是string,字段说明是‘请求返回的状态1成功0失败’;