//package com.stackfing.front.controller;
//
//import com.stackfing.common.utils.OrderUtil;
//import com.stackfing.front.pojo.Index;
//import com.stackfing.front.vo.*;
//import com.stackfing.pojo.Category;
//import com.stackfing.pojo.KillProduct;
//import com.stackfing.pojo.Notice;
//import com.stackfing.pojo.Product;
//import com.stackfing.service.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @Author: fing
// * @Description:
// * @Date: 下午1:46 18-1-26
// */
//
//@Controller
//public class IndexController {
//
// @Autowired
// private KillProductService killProductService;
//
// @Autowired
// private CategoryService categoryService;
//
// @Autowired
// private NoticeService noticeService;
//
// @Autowired
// private ProductService productService;
//
// @Autowired
// private FrontCommendService frontCommendService;
//
// @GetMapping("")
// public String index(ModelMap modelMap, HttpServletRequest request) {
//// request.getSession().setAttribute("username","admin");
// modelMap.put("killList", getKillProductVo());
// modelMap.put("categorys", categoryService.findAllParent());
// modelMap.put("Notices", noticeService.getNoticeList());
//// modelMap.put("commendList", getFrontCommendVoList());
// modelMap.put("ttt", "123");
// System.out.println(OrderUtil.newOrder());
// return "home/home2";
// }
//
// private List<KillProductVo> getKillProductVo() {
// List<KillProduct> list = killProductService.productList();
// List<KillProductVo> volist = new ArrayList<>();
// for (KillProduct killProduct : list) {
// Product product = productService.getProductById(killProduct.getId());
// KillProductVo killProductVo = new KillProductVo();
// killProductVo.setId(product.getId());
// killProductVo.setPhoto(product.getPhotos());
// killProductVo.setPrice(product.getCurrentPrice());
// killProductVo.setName(product.getName());
// volist.add(killProductVo);
// }
// return volist;
// }
//
// private List<FrontCommendVo> getFrontCommendVoList() {
// List<Category> categoryList = frontCommendService.getFrontCategory();
// List<FrontCommendVo> list = new ArrayList<>();
// for (Category c : categoryList) {
// FrontCommendVo frontCommendVo = new FrontCommendVo();
// frontCommendVo.setTitle(c.getName());
// frontCommendVo.setSubtitle("abc");
// List frontCategoryVoList = new ArrayList();
// List<Category> categories = frontCommendService.subCommendCategory(c.getId());
// for (Category t : categories) {
// FrontCategoryVo vo = new FrontCategoryVo();
// vo.setName(t.getName());
// vo.setId(t.getId());
// frontCategoryVoList.add(vo);
// }
// frontCommendVo.setCategoryList(frontCategoryVoList);
// List frontProductVolist = new ArrayList();
// List<Product> products = frontCommendService.starProduct(c.getId());
// for (Product product : products) {
// FrontProductVo vo = new FrontProductVo();
// vo.setId(product.getId());
// vo.setPhoto(product.getPhotos());
// vo.setTitle(product.getName());
// vo.setPrice(product.getCurrentPrice());
// frontProductVolist.add(vo);
// }
//
// frontCommendVo.setStarProduct(frontProductVolist);
// list.add(frontCommendVo);
// }
//
// return list;
// }
//
// @GetMapping("/success")
// public String success() {
// return "home/success";
// }
//
// @GetMapping("/notice")
// @ResponseBody
// public List<Notice> notice() {
// return noticeService.getNoticeList();
// }
//
// @GetMapping("/home")
// public String home(HttpServletRequest request) {
// return "person/index";
// }
//
//
//
// @GetMapping("/collection")
// public String collection() {
// return "person/collection";
// }
//
// @GetMapping("/v1/category/{id}")
// @ResponseBody
// public CategoryVo getSubCategory(@PathVariable Long id) {
// List<Category> subCategoryById = categoryService.findAllSubCategoryById(id);
// CategoryVo vo = new CategoryVo();
// vo.setName(categoryService.findById(id).getName());
// vo.setSubCategories(subCategoryById);
// return vo;
// }
//}
没有合适的资源?快使用搜索试试~ 我知道了~
handgo-dev.zip
共1195个文件
png:380个
jpg:343个
css:111个
需积分: 5 0 下载量 35 浏览量
2022-09-30
10:23:03
上传
评论
收藏 29.21MB ZIP 举报
温馨提示
handgo-dev.zip
资源详情
资源评论
资源推荐
收起资源包目录
handgo-dev.zip (1195个子文件)
.babelrc 402B
index.ftl.bak 2KB
amazeui.flat.css 322KB
amazeui.flat.css 322KB
amazeui.flat.css 322KB
amazeui.css 321KB
amazeui.css 321KB
amazeui.css 321KB
amazeui.flat.min.css 242KB
amazeui.flat.min.css 242KB
amazeui.flat.min.css 242KB
amazeui.min.css 241KB
amazeui.min.css 241KB
amazeui.min.css 241KB
hmstyle.css 44KB
hmstyle.css 44KB
hmstyle.css 44KB
style.css 18KB
style.css 18KB
style.css 18KB
vipstyle.css 17KB
vipstyle.css 17KB
vipstyle.css 17KB
personal.css 16KB
personal.css 16KB
personal.css 16KB
demo.css 14KB
demo.css 14KB
jsstyle.css 9KB
jsstyle.css 9KB
jsstyle.css 9KB
infstyle.css 8KB
infstyle.css 8KB
infstyle.css 8KB
orstyle.css 8KB
orstyle.css 8KB
orstyle.css 8KB
cartstyle.css 7KB
cartstyle.css 7KB
cartstyle.css 7KB
seastyle.css 7KB
seastyle.css 7KB
seastyle.css 7KB
style.css 7KB
blstyle.css 6KB
blstyle.css 6KB
blstyle.css 6KB
sortstyle.css 6KB
sortstyle.css 6KB
sortstyle.css 6KB
dlstyle.css 5KB
dlstyle.css 5KB
dlstyle.css 5KB
stepstyle.css 5KB
stepstyle.css 5KB
stepstyle.css 5KB
admin.css 5KB
admin.css 5KB
admin.css 5KB
optstyle.css 5KB
optstyle.css 5KB
optstyle.css 5KB
refstyle.css 4KB
refstyle.css 4KB
refstyle.css 4KB
addstyle.css 4KB
footstyle.css 4KB
addstyle.css 4KB
footstyle.css 4KB
addstyle.css 4KB
footstyle.css 4KB
cpstyle.css 4KB
cpstyle.css 4KB
cpstyle.css 4KB
colstyle.css 3KB
colstyle.css 3KB
colstyle.css 3KB
blogstyle.css 3KB
blogstyle.css 3KB
blogstyle.css 3KB
point.css 3KB
point.css 3KB
point.css 3KB
appstyle.css 2KB
appstyle.css 2KB
appstyle.css 2KB
wallet.css 2KB
wallet.css 2KB
wallet.css 2KB
cmstyle.css 2KB
cmstyle.css 2KB
cmstyle.css 2KB
bostyle.css 2KB
bostyle.css 2KB
bostyle.css 2KB
sustyle.css 1KB
sustyle.css 1KB
sustyle.css 1KB
newstyle.css 1KB
newstyle.css 1KB
共 1195 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
n.x
- 粉丝: 214
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0