公众号的设计与实现
摘 要
微信作为中国社交软件的代表,已成为人们生活中不可或缺的一部分。微信朋友圈是微信为用户提供分享知识和交流互动功能的虚拟社区,人们可以在朋友圈分享自己的感受和感兴趣的文章给其他的好友,从而达到社交满足、享乐满足等 各种满足。朋友圈的流行,也为商家提供了新的营销手段,目前,微信营销已经成 为一种主流的营销手段。然而,微信本身并未提供访客记录与转发记录等功能,为 了提高营销效率,了解好友的喜好,并进行有针对性的营销,迫切需要开发出一个既可以获取访客记录又能够可视化访客关系网的系统。为此,集客公众号应运而生。本文基于 WxJava、SSM 框架、Vue、Redis 和微信公众号平台,开发了一套集客公众号系统,该系统为用户提供了如下功能:(1) 订阅文章:公众号能够根据用户的订阅需求,定期向用户发布感兴趣的文章;(2) 分享文章:允许用户将感兴趣的文章的链接,分享到朋友圈;(3) 发布文章:允许用户自己上传文章,并分享到朋友圈;(4)访客分析和统计:允许用户在后台看到谁看了我分享到朋友圈的文章,获得访客的 头像、昵称、阅读次数和时长、转发记录、好友关系链等,综合判断出好友当前的关注点。并且经过系统测试、界面测试和功能测试,本系统能够较好地完成上述功能。
关键词: 微信,公众号,社交,Spring,朋友圈,网页开发
Abstract
As the representative of Chinese social media, WeChat has become an indispensable part of people’s life. WeChat Moments is a virtual community that WeChat provides users with the function of sharing knowledge and communicating and interacting. People can share their feelings and articles of interest to other friends in the WeChat Moments, so as to achieve social satisfaction, hedonic satisfaction and other satisfaction. The popularity of the WeChat Moments also provides new marketing means for businesses. At present, WeChat marketing has become a mainstream marketing means. However, WeChat itself does not provide visitor records and forwarding records and other functions. In order to improve marketing efficiency, understand friends’ preferences and carry out targeted marketing, it is urgent to develop a system that can not only obtain visitor records but also visualize visitor networks. Therefore, Jike Official Accounts arises at the historic moment. Based on WxJava, SSM framework, Vue, Redis and WeChat public account platform, this paper develops a set of public account collection system, which provides users with the following functions: (1) subscribe articles: Jike Official Accounts can reg- ularly publish articles of interest to users according to their subscription requirements; (2) Sharing articles: Allow users to share links of articles they are interested in to their mo- ments; (3) Upload articles: Allow users to upload articles and share them in the WeChat Moments; (4) Visitor analysis and statistics: users are allowed to see who has seen the articles I share in the WeChat Moments in the background, obtain the visitors’ avatar, nickname, reading times and hours, forwarding records, friendship chain, etc., and com- prehensively judge the current concerns of friends. And through system testing, interface testing and functional testing, the system can better complete the above functions.
Keywords: WeChat,WeChat platform,social media,Spring,WeChat Moments,Web
目 录
摘 要 I
Abstract II
目录 IV
表目录 V
图目录 VI
第一章 绪论 1
1.1 研究的背景和意义 1
1.1.1 课题背景 1
1.1.2 研究意义 1
1.2 国内外现状 2
1.3 研究主要内容 3
1.4 论文的结构安排 6
第二章 关键技术介绍 7
2.1 微信公众号的定义与分类 7
2.2 WxJava 框架 8
2.3 Spring 框架 9
2.4 MyBatis 框架 11
2.5 Redis 12
2.6 Vue.JS 13
2.7 Mint UI 框架 14
2.8 本章小结 14
第三章 集客公众号系统分析与设计 15
3.1 系统功能需求分析 15
3.1.1 前台功能需求分析 15
3.1.2 文章管理功能需求分析 17
3.2 系统用例分析 17
3.3 系统架构设计 19
3.4 数据库设计 22
3.4.1 数据库概念结构设计 22
3.4.2 数据库物理结构设计 23
3.5 本章小结 26
第四章 集客公众号系统的实现 27
4.1 开发环境介绍 27
4.2 系统业务功能的实现 27
4.2.1 权限管理 27
4.2.2 文章管理 29
4.2.3 阅读记录 31
4.2.4 文章转发及转发链生成 35
4.2.5 转发链生成 38
4.3 本章小结 41
第五章 系统测试 42
5.1 功能测试 42
5.1.1 权限管理测试 42
5.1.2 文章阅读测试 42
5.1.3 文章转发测试 43
5.1.4 文章记录测试 44
5.1.5 文章上传测试 44
5.2 本章小结 46
第六章 总结与展望 47
6.1 本文工作总结 47
6.2 进一步的研究与展望 47
参考文献 49
致 谢 51
附 录 52