# youbuduo-java **Repository Path**: hwq666/youbuduo-java ## Basic Information - **Project Name**: youbuduo-java - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-17 - **Last Updated**: 2021-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 新网赚业务系统 #### 介绍 兼职咸鱼后台系统 app端数据接口 #### 软件架构 springboot + freemarket+mybatis+redis缓存,session共享,分布式锁,消息队列+阿里Oss图片上传+fastjson+AOP+quartz定时任务 #### 安装教程 测试地址: [http://xianyu.test.6bqb.com](http://xianyu.test.6bqb.com) 接口测试: [swagger-ui](http://xianyu.test.6bqb.com:8081/swagger-ui.html#/) #### 使用说明 #### 友盟推送参数说明 //"{\n"+ // "\t\"appkey\": \"xx\", // 必填,应用唯一标识\n"+ // "\t\"timestamp\": \"xx\", // 必填,时间戳,10位或者13位均可,时间戳有效期为10分钟\n"+ // "\t\"type\": \"xx\", // 必填,消息发送类型,其值可以为: \n"+ // "\t// unicast-单播\n"+ // "\t// listcast-列播,要求不超过500个device_token\n"+ // "\t// filecast-文件播,多个device_token可通过文件形式批量发送\n"+ // "\t// broadcast-广播\n"+ // "\t// groupcast-组播,按照filter筛选用户群, 请参照filter参数\n"+ // "\t// customizedcast,通过alias进行推送,包括以下两种case:\n"+ // "\t// - alias: 对单个或者多个alias进行推送\n"+ // "\t// - file_id: 将alias存放到文件后,根据file_id来推送\n"+ // "\t\"device_tokens\": \"xx\", // 当type=unicast时, 必填, 表示指定的单个设备\n"+ // "\t// 当type=listcast时, 必填, 要求不超过500个, 以英文逗号分隔\n"+ // "\t\"alias_type\": \"xx\", // 当type=customizedcast时, 必填\n"+ // "\t// alias的类型, alias_type可由开发者自定义, 开发者在SDK中\n"+ // "\t// 调用setAlias(alias, alias_type)时所设置的alias_type\n"+ // "\t\"alias\": \"xx\", // 当type=customizedcast时, 选填(此参数和file_id二选一)\n"+ // "\t// 开发者填写自己的alias, 要求不超过500个alias, 多个alias以英文逗号间隔\n"+ // "\t// 在SDK中调用setAlias(alias, alias_type)时所设置的alias\n"+ // "\t\"file_id\": \"xx\", // 当type=filecast时,必填,file内容为多条device_token,以回车符分割\n"+ // "\t// 当type=customizedcast时,选填(此参数和alias二选一)\n"+ // "\t// file内容为多条alias,以回车符分隔。注意同一个文件内的alias所对应\n"+ // "\t// 的alias_type必须和接口参数alias_type一致。\n"+ // "\t// 使用文件播需要先调用文件上传接口获取file_id,参照\"文件上传\"\n"+ // "\t\"filter\": {}, // 当type=groupcast时,必填,用户筛选条件,如用户标签、渠道等,参考附录G。\n"+ // "\t// filter的内容长度最大为3000B)\n"+ // "\t\"payload\": { // 必填,JSON格式,具体消息内容(Android最大为1840B)\n"+ // "\t\t\"display_type\": \"xx\", // 必填,消息类型: notification(通知)、message(消息)\n"+ // "\t\t\"body\": { // 必填,消息体。\n"+ // "\t\t\t// 当display_type=message时,body的内容只需填写custom字段。\n"+ // "\t\t\t// 当display_type=notification时,body包含如下参数:\n"+ // "\t\t\t// 通知展现内容:\n"+ // "\t\t\t\"ticker\": \"xx\", // 必填,通知栏提示文字\n"+ // "\t\t\t\"title\": \"xx\", // 必填,通知标题\n"+ // "\t\t\t\"text\": \"xx\", // 必填,通知文字描述 \n"+ // "\n"+ // "\t\t\t// 自定义通知图标:\n"+ // "\t\t\t\"icon\": \"xx\", // 可选,状态栏图标ID,R.drawable.[smallIcon],\n"+ // "\t\t\t// 如果没有,默认使用应用图标。\n"+ // "\t\t\t// 图片要求为24*24dp的图标,或24*24px放在drawable-mdpi下。\n"+ // "\t\t\t// 注意四周各留1个dp的空白像素\n"+ // "\t\t\t\"largeIcon\": \"xx\", // 可选,通知栏拉开后左侧图标ID,R.drawable.[largeIcon],\n"+ // "\t\t\t// 图片要求为64*64dp的图标,\n"+ // "\t\t\t// 可设计一张64*64px放在drawable-mdpi下,\n"+ // "\t\t\t// 注意图片四周留空,不至于显示太拥挤\n"+ // "\t\t\t\"img\": \"xx\", // 可选,通知栏大图标的URL链接。该字段的优先级大于largeIcon。\n"+ // "\t\t\t// 该字段要求以http或者https开头。\n"+ // "\n"+ // "\t\t\t// 自定义通知声音:\n"+ // "\t\t\t\"sound\": \"xx\", // 可选,通知声音,R.raw.[sound]。\n"+ // "\t\t\t// 如果该字段为空,采用SDK默认的声音,即res/raw/下的\n"+ // "\t\t\t// umeng_push_notification_default_sound声音文件。如果\n"+ // "\t\t\t// SDK默认声音文件不存在,则使用系统默认Notification提示音。\n"+ // "\n"+ // "\t\t\t// 自定义通知样式:\n"+ // "\t\t\t\"builder_id\": xx, // 可选,默认为0,用于标识该通知采用的样式。使用该参数时,\n"+ // "\t\t\t// 开发者必须在SDK里面实现自定义通知栏样式。\n"+ // "\n"+ // "\t\t\t// 通知到达设备后的提醒方式,注意,\"true/false\"为字符串\n"+ // "\t\t\t\"play_vibrate\": \"true/false\", // 可选,收到通知是否震动,默认为\"true\"\n"+ // "\t\t\t\"play_lights\": \"true/false\", // 可选,收到通知是否闪灯,默认为\"true\"\n"+ // "\t\t\t\"play_sound\": \"true/false\", // 可选,收到通知是否发出声音,默认为\"true\"\n"+ // "\n"+ // "\t\t\t// 点击\"通知\"的后续行为,默认为打开app。\n"+ // "\t\t\t\"after_open\": \"xx\", // 可选,默认为\"go_app\",值可以为:\n"+ // "\t\t\t// \"go_app\": 打开应用\n"+ // "\t\t\t// \"go_url\": 跳转到URL\n"+ // "\t\t\t// \"go_activity\": 打开特定的activity\n"+ // "\t\t\t// \"go_custom\": 用户自定义内容。\n"+ // "\t\t\t\"url\": \"xx\", // 当after_open=go_url时,必填。\n"+ // "\t\t\t// 通知栏点击后跳转的URL,要求以http或者https开头\n"+ // "\t\t\t\"activity\": \"xx\", // 当after_open=go_activity时,必填。\n"+ // "\t\t\t// 通知栏点击后打开的Activity\n"+ // "\t\t\t\"custom\": \"xx\" / {} // 当display_type=message时, 必填\n"+ // "\t\t\t// 当display_type=notification且\n"+ // "\t\t\t// after_open=go_custom时,必填\n"+ // "\t\t\t// 用户自定义内容,可以为字符串或者JSON格式。\n"+ // "\t\t},\n"+ // "\t\textra: { // 可选,JSON格式,用户自定义key-value。只对\"通知\"\n"+ // "\t\t\t// (display_type=notification)生效。\n"+ // "\t\t\t// 可以配合通知到达后,打开App/URL/Activity使用。\n"+ // "\t\t\t\"key1\": \"value1\",\n"+ // "\t\t\t\"key2\": \"value2\",\n"+ // "\t\t\t...\n"+ // "\t\t}\n"+ // "\t},\n"+ // "\t\"policy\": { // 可选,发送策略\n"+ // "\t\t\"start_time\": \"xx\", // 可选,定时发送时,若不填写表示立即发送。\n"+ // "\t\t// 定时发送时间不能小于当前时间\n"+ // "\t\t// 格式: \"yyyy-MM-dd HH:mm:ss\"。 \n"+ // "\t\t// 注意,start_time只对任务类消息生效。\n"+ // "\t\t\"expire_time\": \"xx\", // 可选,消息过期时间,其值不可小于发送时间或者\n"+ // "\t\t// start_time(如果填写了的话),\n"+ // "\t\t// 如果不填写此参数,默认为3天后过期。格式同start_time\n"+ // "\t\t\"max_send_num\": xx, // 可选,发送限速,每秒发送的最大条数。最小值1000\n"+ // "\t\t// 开发者发送的消息如果有请求自己服务器的资源,可以考虑此参数。\n"+ // "\t\t\"out_biz_no\": \"xx\" // 可选,开发者对消息的唯一标识,服务器会根据这个标识避免重复发送。\n"+ // "\t\t// 有些情况下(例如网络异常)开发者可能会重复调用API导致\n"+ // "\t\t// 消息多次下发到客户端。如果需要处理这种情况,可以考虑此参数。\n"+ // "\t\t// 注意, out_biz_no只对任务类消息生效。\n"+ // "\t},\n"+ // "\t\"production_mode\": \"true/false\", // 可选,正式/测试模式。默认为true\n"+ // "\t// 测试模式只对“广播”、“组播”类消息生效,其他类型的消息任务(如“文件播”)不会走测试模式\n"+ // "\t// 测试模式只会将消息发给测试设备。测试设备需要到web上添加。\n"+ // "\t// Android: 测试设备属于正式设备的一个子集。\n"+ // "\t\"description\": \"xx\", // 可选,发送消息描述,建议填写。 \n"+ // "\t//系统弹窗,只有display_type=notification生效\n"+ // "\t\"mipush\": \"true/false\", // 可选,默认为false。当为true时,表示MIUI、EMUI、Flyme系统设备离线转为系统下发\n"+ // "\t\"mi_activity\": \"xx\", // 可选,mipush值为true时生效,表示走系统通道时打开指定页面acitivity的完整包路径。\n"+ // "}"