中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

設(shè)計(jì)一個(gè)電子商務(wù)網(wǎng)站建設(shè)方案小程序制作

設(shè)計(jì)一個(gè)電子商務(wù)網(wǎng)站建設(shè)方案,小程序制作,哪家公司設(shè)計(jì)網(wǎng)站,張家口網(wǎng)站建設(shè)springboot/ssm校園閑置物品交易系統(tǒng)ava大學(xué)生二手閑置交易平臺(tái)web二手源碼 基于springboot(可改ssm)htmlvue項(xiàng)目 開(kāi)發(fā)語(yǔ)言:Java 框架:springboot/可改ssm vue JDK版本:JDK1.8(或11) 服務(wù)器:tomcat 數(shù)…

springboot/ssm校園閑置物品交易系統(tǒng)ava大學(xué)生二手閑置交易平臺(tái)web二手源碼

基于springboot(可改ssm)+html+vue項(xiàng)目

開(kāi)發(fā)語(yǔ)言:Java

框架:springboot/可改ssm + vue

JDK版本:JDK1.8(或11)

服務(wù)器:tomcat

數(shù)據(jù)庫(kù):mysql 5.7(或8.0)

數(shù)據(jù)庫(kù)工具:Navicat/sqlyog

開(kāi)發(fā)軟件:eclipse/idea

依賴管理包:Maven

代碼+數(shù)據(jù)庫(kù)保證完整可用,可提供遠(yuǎn)程調(diào)試并指導(dǎo)運(yùn)行服務(wù)~

可提供付費(fèi)講解以及修改服務(wù),比如題目、界面、功能、框架等等...

千套代碼,歡迎帶題目咨詢哦~~

package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
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.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 登錄相關(guān)*/
@RequestMapping("users")
@RestController
public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登錄*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("賬號(hào)或密碼不正確");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注冊(cè)*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密碼重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("賬號(hào)不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密碼已重置為:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 獲取用戶的session用戶信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);UserEntity u = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername()));if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {return R.error("用戶名已存在。");}userService.updateById(user);//全部更新return R.ok();}/*** 刪除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}

http://www.risenshineclean.com/news/51116.html

相關(guān)文章:

  • 用帝國(guó)軟件做網(wǎng)站的心得成品網(wǎng)站seo
  • 建設(shè)工程評(píng)標(biāo)專家在哪個(gè)網(wǎng)站登錄百度指數(shù)怎么用
  • 下做圖軟件在哪個(gè)網(wǎng)站下載網(wǎng)站域名注冊(cè)查詢
  • 河南建設(shè)網(wǎng)站官網(wǎng)山東疫情最新消息
  • 桂陽(yáng)網(wǎng)站建設(shè)津seo快速排名
  • 大氣全屏通用企業(yè)網(wǎng)站整站源碼沈陽(yáng)seo優(yōu)化新勢(shì)力
  • 企業(yè)年金如何領(lǐng)取沈陽(yáng)網(wǎng)站關(guān)鍵詞優(yōu)化公司
  • 手機(jī)網(wǎng)站帶后臺(tái)源代碼免費(fèi)網(wǎng)站統(tǒng)計(jì)代碼
  • 網(wǎng)站建設(shè)設(shè)計(jì)制作培訓(xùn)百度下載并安裝到桌面
  • 用php做的網(wǎng)站有哪些最近營(yíng)銷熱點(diǎn)
  • 廣州做網(wǎng)站建設(shè)網(wǎng)站收錄優(yōu)化
  • 產(chǎn)品如何推廣濰坊百度seo公司
  • 建設(shè)企業(yè)查詢網(wǎng)站河北優(yōu)化seo
  • 網(wǎng)站建設(shè)北京公司軟件推廣平臺(tái)有哪些?哪個(gè)比較好
  • 做軟件賺錢的網(wǎng)站有哪些百度資源搜索平臺(tái)官網(wǎng)
  • 北京和田合瑞建設(shè)有限公司網(wǎng)站網(wǎng)店?duì)I銷與推廣策劃方案
  • 百度收錄最高發(fā)帖網(wǎng)站seo搜索方法
  • 網(wǎng)站搭建合同seo短視頻網(wǎng)頁(yè)入口引流網(wǎng)站
  • 網(wǎng)站推廣設(shè)計(jì)做哪些口碑營(yíng)銷的主要手段有哪些
  • 現(xiàn)在從事網(wǎng)站開(kāi)發(fā)如何網(wǎng)站優(yōu)化排名服務(wù)
  • 網(wǎng)站建設(shè)佰金手指科捷一ui設(shè)計(jì)
  • 甘肅網(wǎng)站建設(shè)seo策略什么意思
  • 網(wǎng)站關(guān)鍵詞重要嗎新手怎么學(xué)電商運(yùn)營(yíng)
  • reactjs 做的網(wǎng)站媒體公關(guān)
  • 萊蕪最好的網(wǎng)站建設(shè)公司網(wǎng)站注冊(cè)時(shí)間查詢
  • 運(yùn)維為什么沒(méi)人干濰坊seo關(guān)鍵詞排名
  • 購(gòu)物網(wǎng)站建設(shè)的原理谷歌外鏈
  • 廣州知名網(wǎng)站建設(shè)性價(jià)比高競(jìng)價(jià)推廣是做什么的
  • 服裝網(wǎng)站模板下載360指數(shù)在線查詢
  • 百度搜不到WordPress文章seo怎么讀