N-121基于微信小程序网上书城系统

news/2024/7/10 2:18:45 标签: 微信小程序, 小程序, springboot, vue, uniapp, mybatis

开发工具:IDEA、小程序>微信小程序

服务器:Tomcat9.0, jdk1.8

项目构建:maven

数据库:mysql5.7

前端技术:vueuniapp

服务端技术:springboot+mybatis+redis

本系统分小程序>微信小程序和管理后台两部分,项目采用前后端分离

主要功能如下:

(1)后台部分功能:

1.登录、首页、退出登录

2.用户管理:新增、修改、分页查询、删除

3.商品分类管理:新增、修改、分页查询、删除

4.商品管理:新增、修改、分页查询、删除

4.订单管理:修改状态、查询详情、分页查询、删除

(2)小程序部分功能:

1.登录、注册、首页

2.购物车、商品详情、搜索商品、结算功能

3.我的订单、个人资料、退出登录

文档截图:

小程序>微信小程序截图: 

后台截图:

package com.yjq.programmer.controller.web;

import com.yjq.programmer.dto.CartDTO;
import com.yjq.programmer.dto.ResponseDTO;
import com.yjq.programmer.service.ICartService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController("WebCartController")
@RequestMapping("/web/cart")
public class CartController {

    @Resource
    private ICartService cartService;

    /**
     * 添加购物车操作
     * @param cartDTO
     * @return
     */
    @PostMapping("/add")
    public ResponseDTO<Boolean> addCart(@RequestBody CartDTO cartDTO){
        return cartService.addCart(cartDTO);
    }

    /**
     * 查询购物车数据
     * @param cartDTO
     * @return
     */
    @PostMapping("/get")
    public ResponseDTO<List<CartDTO>> getCartList(@RequestBody CartDTO cartDTO){
        return cartService.getCartList(cartDTO);
    }

    /**
     * 更新购物车操作
     * @param cartDTO
     * @return
     */
    @PostMapping("/update")
    public ResponseDTO<Boolean> updateCart(@RequestBody CartDTO cartDTO){
        return cartService.updateCart(cartDTO);
    }

    /**
     * 删除购物车操作
     * @param cartDTO
     * @return
     */
    @PostMapping("/remove")
    public ResponseDTO<Boolean> removeCart(@RequestBody CartDTO cartDTO){
        return cartService.removeCart(cartDTO);
    }


}


http://www.niftyadmin.cn/n/1009358.html

相关文章

C++语言之结构体

结构体属于用户自定义的数据类型&#xff0c;允许用户存储不同的数据类型。下面会介绍结构体。 目录 1.定义 1.1 语法格式 1.2 创建变量的方式 2.成员调用 3.成员函数调用 4.例题 1.定义 1.1 语法格式 语法格式如下&#xff1a; struct 结构体类型名{成员表;成员函数;…

mybatis传递参数和批量操作

mybatis的基本使用 在mapper中如何传递多个参数 方法1&#xff1a;顺序传参法 public User selectUser(String name, int deptId);<select id"selectUser" resultMap"UserResultMap">select * from userwhere user_name #{0} and dept_id #{1} …

deno使selenium调用edge浏览器(Window)

1. 获取驱动 msedgedriver.exe 查看edge浏览器版本&#xff0c;链接edge://settings/help下载对应的版本驱动&#xff1a;https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/把 msedgedriver.exe 放到系统环境的PATH中 2、代码部分 //导入 selenium 库…

Redis进阶 - Redis分片集群

原文首更地址&#xff0c;阅读效果更佳&#xff01; Redis进阶 - Redis分片集群 | CoderMast编程桅杆https://www.codermast.com/database/redis/redis-advance-sharded-cluster.html 搭建分片集群 主从和哨兵可以解决高可用、高并发读的问题。但是依然有两个问题没有解决&a…

Vue 3 中使用 TypeScript 和 Composition API

-使用纯 TypeScript 声明 props 和抛出事件 <script setup lang"ts"> import { ref } from vue defineProps<{ msg: string }>() const count ref(0) </script>在 ts 中使用 props中的属性&#xff0c;具有很好的类型推断能力,ts写法没有定义默…

【数据结构】栈和队列(队列篇)

上期我们已经学习了数据结构中的栈&#xff0c;这期我们开始学习队列。 目录 1.队列的概念及结构 2.队列的实现 队列结构体定义 常用接口函数 初始化队列 队尾入队列 队头出队列 获取队列头部元素、 获取队列队尾元素 获取队列中有效元素个数 检测队列是否为空 销毁…

LwIP系列(4):ARP协详解

前言 对于应用程序而言&#xff0c;我们与其他设备、服务通信&#xff0c;主要通过域名、IP进行通信&#xff0c;而以太网底层驱动&#xff0c;最终是通过MAC地址来表示设备的唯一标识&#xff0c;即IP是逻辑地址&#xff0c;并不是物理地址。在上一篇文章中&#xff0c;我们也…

rman将rac环境恢复到单机,删除redo告警ORA-01623 ORA-00312

将rac环境迁移单机后&#xff0c;删除redo的thread 2告警&#xff0c;告警信息如下 SQL> select thread#,status,enabled from v$thread; THREAD# STATUS ENABLED ---------- ------ -------- 1 OPEN PUBLIC 2 CLOSED PUBLIC SQL> select group#,thread#,a…