讯飞云平台的后端界面的设计与实现

 2022-06-12 08:06

论文总字数:24563字

摘 要

近几年,随着springboot的出现,越来越多的企业开始采用springboot框架作为自己开发的基础框架。Spring Boot是一个用于简化、加速Spring开发的框架[1]。本文采用了springboot springcloud mybatis的新型ssm框架,来进行服务市场的网站的后端开发。服务市场是一个提供给需要第三方服务的雇主与能够提供第三方服务的服务商进行交互的电商平台,其开发主要包括数据库的建立,各个功能模块接口的提供,以及后端框架的整合三个方面。

本文基于springboot框架,采用微服务的架构方式,进行讯飞云平台服务市场的网站开发。从需求分析到可行性考量,以及对数据库的相关设计,最后到具体功能的设计与实现,其中包括消息模块,工单模块,收货地址模块,服务商总览模块和订单管理模块等功能模块的设计与开发,并且运用到了sso单点登录,redis分布式锁和悲观锁等相应的技术实现。采用RESTful API接口的功能模块开发方式,以提供相对应的功能接口给予前端调用实现相应功能,实现真正意义上的前后端分离开发。在数据库的选择方面采用Mysql数据库,缓存采用redis数据库,完成整个系统的框架搭建与具体功能实现。

关键词:springboot,微服务,数据库,RESTful API

ABSTRACT

In recent years, with the emergence of springboot, more and more companies have begun to use the springboot framework as their own development of the basic framework.

This article uses the new ssm framework of springboot springcloud mybatis to develop the backend of the website of the service market. The service market is an e-commerce platform provided for employers who need third-party services to interact with service providers that can provide third-party services. Their development mainly includes the establishment of databases, the provision of interfaces for various functional modules, and the integration of back-end frameworks. Aspects.

This article is based on the spring boot framework and adopts the microservices architecture approach to conduct the development of the website of the information fly cloud platform service market. From requirements analysis to feasibility considerations, and related design of the database, and finally to the design and implementation of specific functions, including message modules, work order modules, receiving address module, service provider overview module, and order management module and other functional modules. Design and development, and applied to the sso single sign-on, redis distributed locks and pessimistic locking and other corresponding technical implementation. The functional module development mode of the RESTful API interface is used to provide the corresponding functional interface to the front-end call to implement the corresponding function, and to achieve the real front-end and back-end separation development. The use of Mysql database in the selection of the database, the cache using redis database, complete the framework of the entire system to build and achieve specific functions.

Keywords:springboot,Microservices,databases,RESTful API

目 录

第一章 绪论 1

1.1背景及意义 1

1.2 研究与发展现状 1

1.3 论文主要内容与组织结构 2

第二章 相关技术介绍 3

2.1 spring boot框架 3

2.2 微服务架构 3

2.3 Mybatis框架 4

第三章 系统需求分析 6

3.1 系统可行性分析 6

3.2系统需求分析 6

3.3 业务流程分析 8

3.4 系统功能分析 9

第四章 系统设计 10

4.1 数据库分析设计 10

4.2 网站整体系统开发架构设计 10

4.3 各功能模块详细设计 11

4.3.1 消息模块 11

4.3.2 工单模块 13

4.3.3 收货地址模块 14

4.3.4 服务商账户总览模块 15

4.3.5 订单管理模块 16

第五章 系统实现 19

5.1 用户登录实现 19

5.2 消息模块实现 22

5.2.1功能介绍 22

5.2.2 界面展示 23

5.2.3 API接口实现 26

5.3 工单模块实现 28

5.3.1 功能介绍 28

5.3.2 页面展示 29

5.3.3 API接口实现 30

5.4 收货地址模块 31

5.4.1 功能介绍 31

5.4.2 页面展示 32

5.4.3 API接口实现 32

5.4.4 redis分布式锁 33

5.5 服务商总览模块 34

5.5.1 功能介绍 34

5.5.2 界面展示 35

5.5.3 API接口实现 35

5.6 订单管理模块 36

5.6.1 功能介绍 36

5.6.2 界面展示 37

5.6.3 API接口实现 38

5.6.4 悲观锁的实现 38

第六章 单元测试 39

6.1 消息模块功能测试 39

6.1.1 消息列表接口 39

6.1.2 删除消息接口 40

6.1.3 消息数量统计接口 41

6.1.4 标记已读消息接口 42

6.1.5 消息详情展示接口 42

6.1.6 展示规则公告消息列表接口 42

6.1.7 公告消息详情展示接口 43

6.2 工单功能模块测试 43

6.2.1 获取所有工单分类接口 43

6.2.2 根据工单分类id获取自定义表单集合接口 45

6.2.3获取用户所有工单记录 46

6.2.4获取工单详情接口 49

6.2.5工单交互接口 51

6.2.6提交工单评价接口 52

6.2.7 获取所有未读消息接口 52

6.3 收货地址功能模块测试 53

6.3.1 地址列表展示接口 53

6.3.2 删除地址接口 54

6.3.3 统计当前用户地址条数接口 54

6.3.4 设置默认地址接口 55

6.4 服务商账户总览功能模块测试 55

6.4.1 总交易量/额接口 55

6.4.2 订单/服务数量接口 56

6.4.3 销量/销售额接口 56

第七章 总结与展望 58

致 谢 59

参考文献 60

第一章 绪论

1.1背景及意义

近年来互联网技术的飞速发展,使得很多的企业或个人商户逐渐产生了需要在互联网上进行宣传或者提供服务的需求。但是实际上很多企业或者个人都不具备开发网站或者是某些功能接口的能力与技术,因此他们需要获取其他拥有这类技术的企业或者开发团队向他们提供这类技术或产品。服务市场正是为了满足这些人的交互需求而产生的一个全新的电商平台,服务市场给需要这类需求的用户(下文均称为雇主)和能够提供这类服务的服务商(以下均称为服务商)搭建一个可以互相沟通与交互的电商平台,从而让他们能够各自获取自己的需求。

与此同时,服务市场网站还提供了雇主与服务商进行交互的平台,可以在该平台上完成钱货交易,并且会对实际入驻的服务商进行实名认证,从而保障交易的安全进行。服务市场的出现,能够有力地解决现在资源与交流通口不匹配的问题,保障了资源的合理利用,使得人力物力与资源的有效使用。

剩余内容已隐藏,请支付后下载全文,论文总字数:24563字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;