Git Product home page Git Product logo

marketmodulebg's Introduction

首先谢谢你用我的软件啦。这是我写的第一个开源,多有不足,请多指教。

PowerBy:WangCheese


-----------------------------------------------------------------------
数据库名称:market_db
数据库文件:market_db.sql



接口说明:

默认根地址:
	http://localhost:8080/marketbg

User模块:/user

	1.注册 /register POST
		参数:
			必选:
			String account
			String password

		返回值:0 (注册成功)

	2.登录 /login GET
		参数:
			必选:
			String account
			String password

		返回值:User信息 (登录成功)
				null (登录失败)

	3.更新信息 /update POST
		参数:
			必选:
			Integer id

			可选:
			String nickname
			String phone
			String password
    		Integer type
    		String icon
    		Integer score

		返回值:User信息 (登录成功)
				null (登录失败)

	4.检测账号是否重复 /checkAccount GET
		参数:
			必选:
			String testAccount

		返回值:Boolean

Product模块:/product

	1.得到轮播图片 /productGetCarousel GET
		参数:无

		返回值:List<轮播图片>

	2.搜索 /productGetSerach GET
		参数:
			必选:
			String serach
			Integer start
			Integer size

		返回值:List<产品信息>

	3.添加产品 /productCreate POST
		参数:
			必选:
			String name
			Float price
			Integer type
			String imageaddress
			String introduce

		返回值:0 (添加成功)

ShoppingCart模块:/shoppingCart

	1.得到某人的购物车数据 /shoppingCartGet GET
		参数:
			必选:
			Integer userid

		返回值:List<购物车数据>

	2.创建一条某人的购物车数据 /shoppingCartCreate POST
		参数:
			必选:
			Integer userid
			Integer productid
			Float price
			Integer number

		返回值:0(创建成功)

	3.删除一条某人的购物车数据 /shoppingCartDelete POST
		参数:
			必选:
			Integer id

		返回值:0 (删除成功)

marketmodulebg's People

Watchers

weimingtom avatar  avatar

Forkers

yecaokinux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.