2023 Java mall graduation project (with source code and database file download link) Spring Boot + mysql + maven + mybatis-plus

The resource directory is as follows: (source code + sql file)
Click me to download resources
insert image description here

2000 is the correct code

user registration

insert image description here

get

http://192.168.180.1/users/reg

At least one userPhone/userMail mobile phone mailbox can be registered (the format is judged by the front end

userNickName (the length of the user name is determined/judged by the front end

password 6 to 14 digits front-end judgment

userSex Gender 0: Female 1: Male

userType User type 0: user, 1: management (users are not required to fill in.

payPwd payment password (6 digits

The return parameter is 2000 correct code

User login

insert image description here

POST

http://192.168.180.1/users/login

userPhone/userMail mobile phone or email login (format front-end judgment

password password (length judgment

change Password

insert image description here

Commodity list (category + fuzzy query)

insert image description here

personal information

GET

http://192.168.180.1/users/userInfo/show

Just log in

The login password and payment password (PayPwd) returned are hidden

return parameter

data
userNickName username
userPhone “17707077070”
userMail Mail
payPwd payment password
purchaseCount Number of purchases
purchaseSuccess Successful Transactions
consumption Consumption amount

creditScore credit score

User information modification

POST

http://192.168.180.1/users/userInfo/update

None of the following fields can be modified, and the user will be redirected to log in after modifying the password

userPhone/userMail (format front-end judgment

userNickName (the length is the same as the registration rule)

oldPassword old password length judgment

newPassword password (new password length judgment

oldPayPwd Old payment password modification (6-digit modification of payment password does not require login password verification

newPayPwd New payment password (6 digits

The return parameter is 2000 correct code

order information

insert image description here

POST

http://192.168.180.1/order/show

An interface between the shopping cart and the transaction order or refund order or expired order

Request parameters (shopping cart view order unpaid status pass 0 view my order status pass 1 (including refunds and expired ones, the front end can distinguish order types

status status (0: not paid, 1: paid, 2: refunded, 3: expired)

Remember that the discounted price (dealPrice) needs to be multiplied by the quantity (count)

id order number
userId user id
productId commodity id
shopsId shop id
address address
status “1”
discount purchase discount
updateBy updater
updateDate update time (used as purchase time
productImg picture
price original price
dealPrice Discounted price
productName Product name
shopsName roll call

count number

add to cart

insert image description here

POST

http://192.168.180.1/order/add/order

request parameters

productImg product image

original price

dealPrice discounted price

currentDiscount current discount

productNameProduct name

shopsName shop name

count purchase quantity

return parameter

2000 correct code

product list

GET

http://192.168.180.1/product/list/show

request parameters

productName product name search (fuzzy search

orderType sorting rule 0: heat sorting 1: price sorting from low to high 2: price sorting from high to low

classPro Product classification (1: clothing, 2: children's clothing, 2: shoes, 3: electronics, 4: books, 5: pet supplies, 6: daily necessities, 7 snacks

return parameter

0
id commodity id
productName Product name
productDesc Product Description
shopsId shop id
price price
currentDiscount current discount
productImg The map's address
status Current status (0: off the shelf, 1: on the shelf)
dealCount Quantity sold
type Commodity type (1: clothing, 2: children's clothing, 2: shoes, 3: electronics, 4: books, 5: pet supplies, 6: daily necessities, 7 snacks
updateBy updater
updateDate Available as Shelf Time
shopsName store name
disPrice Discounted price

Store details

GET

http://192.168.180.1/product/list/show

Reuse product list interface

The request parameter
shopsId is passed in the clicked shop id (afterwards, the classification and sorting in the shop and the product name search all need to carry the shop id

productName product name search (fuzzy search

orderType sorting rule 0: heat sorting 1: price sorting from low to high 2: price sorting from high to low

classPro Product classification (1: clothing, 2: children's clothing, 2: shoes, 3: electronics, 4: books, 5: pet supplies, 6: daily necessities, 7 snacks

The return parameter list is the same as

product details

GET

http://192.168.180.1/product/details

request parameters

id product id

return parameter

The same as the parameters of the product list

shop list

GET

http://192.168.180.1/shops/list/show

request parameters

orderType sorting rule 1: popularity 2: default sorting

shopsType shop type (1: clothing, 2: children's clothing, 2: shoes, 3: electronics, 4: books, 5: pet supplies, 6: daily necessities, 7 snacks

shopsName shop name search (fuzzy search)

return parameter

0
id shop id
shopsName shop name
userId user id
type Store type (1: clothing, 2: children's clothing, 2: shoes, 3: electronics, 4: books, 5: pet supplies, 6: daily necessities, 7 snacks
desc "Monopoly Toys"
status Store status (0: Normal, 1: Suspended operations, 2: Banned)
dealCount Transaction order quantity
createBy founder
createDate opening time
updateBy updater
updateDate update time

Click me to download project resources

Guess you like

Origin blog.csdn.net/weixin_43474701/article/details/130477031
Recommended