Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
zenofung committed Mar 8, 2022
1 parent 353fff1 commit b40ba26
Show file tree
Hide file tree
Showing 122 changed files with 7,135 additions and 50 deletions.
2 changes: 1 addition & 1 deletion mall-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>wine_game</artifactId>
<groupId>com.zenofung</groupId>
<artifactId>wine_game</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.constant;
package com.zenofung.common.constant;

/**
* <p>Title: AuthServerConstant</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.constant;
package com.zenofung.common.constant;

/**
* <p>Title: CartConstant</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.constant;
package com.zenofung.common.constant;

/**
* <p>Title: ProductConstant</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.constant;
package com.zenofung.common.constant;

public class WareConstant {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.exception;
package com.zenofung.common.exception;

/**
* <p>Title: BizCodeEnum</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.exception;
package com.zenofung.common.exception;


import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.exception;
package com.zenofung.common.exception;

/**
* <p>Title: NotStockException</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.exception;
package com.zenofung.common.exception;

/**
* 自定义异常
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to;
package com.zenofung.common.to;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to;
package com.zenofung.common.to;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to;
package com.zenofung.common.to;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.es;
package com.zenofung.common.to.es;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.es;
package com.zenofung.common.to.es;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.mq;
package com.zenofung.common.to.mq;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.mq;
package com.zenofung.common.to.mq;
import lombok.Data;

import java.math.BigDecimal;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.mq;
package com.zenofung.common.to.mq;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.to.mq;
package com.zenofung.common.to.mq;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.utils;
package com.zenofung.common.utils;

/**
* 常量
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.utils;
package com.zenofung.common.utils;

import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.utils;
package com.zenofung.common.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.utils;
package com.zenofung.common.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.commons.lang.StringUtils;

import com.fpc.common.xss.SQLFilter;
import com.zenofung.common.xss.SQLFilter;


import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.utils;
package com.zenofung.common.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.fpc.common.to.es.SkuHasStockVo;
import org.apache.http.HttpStatus;
import org.springframework.beans.PropertyValues;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.valid;
package com.zenofung.common.valid;

/**
* @description: ________
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.valid;
package com.zenofung.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.valid;
package com.zenofung.common.valid;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.valid;
package com.zenofung.common.valid;

/**
* @description: ________
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.valid;
package com.zenofung.common.valid;

public interface UpdateStatusGroup {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fpc.common.xss;
package com.zenofung.common.xss;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/

package com.fpc.common.xss;
package com.zenofung.common.xss;


import com.fpc.common.exception.RRException;
import com.zenofung.common.exception.RRException;
import org.apache.commons.lang.StringUtils;

/**
Expand Down
2 changes: 1 addition & 1 deletion renren-generator/src/main/resources/generator.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mainPath=com.zenofung
#\u5305\u540D
package=com.wine.game
moduleName=ware
moduleName=wine
#\u4F5C\u8005
author=zenofung
#Email
Expand Down
2 changes: 1 addition & 1 deletion renren-generator/target/classes/generator.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
mainPath=com.zenofung
#\u5305\u540D
package=com.wine.game
moduleName=ware
moduleName=wine
#\u4F5C\u8005
author=zenofung
#Email
Expand Down
5 changes: 5 additions & 0 deletions wine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.zenofung</groupId>
<artifactId>mall-common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
package com.wine.game.wine.controller;

import java.util.Arrays;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
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.RestController;

import com.wine.game.wine.entity.ArticleEntity;
import com.wine.game.wine.service.ArticleService;
import com.zenofung.common.utils.PageUtils;
import com.zenofung.common.utils.R;



/**
*
*
* @author zenofung
* @email [email protected]
* @date 2022-03-08 11:46:32
*/
@RestController
@RequestMapping("wine/article")
public class ArticleController {
@Autowired
private ArticleService articleService;

/**
* 列表
*/
@RequestMapping("/list")
//@RequiresPermissions("wine:article:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = articleService.queryPage(params);

return R.ok().put("page", page);
}


/**
* 信息
*/
@RequestMapping("/info/{id}")
//@RequiresPermissions("wine:article:info")
public R info(@PathVariable("id") Integer id){
ArticleEntity article = articleService.getById(id);

return R.ok().put("article", article);
}

/**
* 保存
*/
@RequestMapping("/save")
//@RequiresPermissions("wine:article:save")
public R save(@RequestBody ArticleEntity article){
articleService.save(article);

return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
//@RequiresPermissions("wine:article:update")
public R update(@RequestBody ArticleEntity article){
articleService.updateById(article);

return R.ok();
}

/**
* 删除
*/
@RequestMapping("/delete")
//@RequiresPermissions("${moduleNamez}:article:delete")
public R delete(@RequestBody Integer[] ids){
articleService.removeByIds(Arrays.asList(ids));

return R.ok();
}

}
Loading

0 comments on commit b40ba26

Please sign in to comment.