Compare commits

..

5 Commits

Author SHA1 Message Date
cafb099c40 测试完成回归正常 2024-01-25 14:52:32 +08:00
f33d9340b3 Merge remote-tracking branch 'origin/update' into update
# Conflicts:
#	README.md
2024-01-25 14:43:56 +08:00
cbc0eea5e7 Reapply "撤销提交重新推送"
This reverts commit 64b65acefff9607d2b9a670db18677ece0111eec.
2024-01-25 14:41:59 +08:00
5f66891b8b 学习 git 提交回滚 2024-01-25 14:39:09 +08:00
b160edca01 修改角色管理中权限分配 新增登录日志表
修改 @Create 标识为 @since
2024-01-24 17:03:32 +08:00
117 changed files with 365 additions and 200 deletions

View File

@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="RemoteRepositoriesConfiguration"> <component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="central" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository> <remote-repository>
<option name="id" value="central" /> <option name="id" value="central" />
<option name="name" value="Central Repository" /> <option name="name" value="Central Repository" />

View File

@ -230,8 +230,31 @@ services:
start_period: 60s #⾸次检测延迟时间 start_period: 60s #⾸次检测延迟时间
``` ```
## 云效流水线 ## 学习 git 提交回滚
![image-20240124135129367](https://lsky.hhdxw.top/imghub/2024/01/image-202401241706075490.png) ```shell
撤销提交重新推送
后续整合部署 重新提交推送
再次尝试提交推送
```
总结:自己的远程分支版本回退的方法
```shell
#首先找到需要会退版本ID
git reflog
#如果你的错误提交已经推送到自己的远程分支了,那么就需要回滚远程分支了。
#首先要回退本地分支
git reflogç
git reset --hard Obfafd
#紧接着强制推送到远程分支
git push -f
```
最后强制推送效果(可视化中没有找到强制推送,先使用命令行强制推送吧)
![image-20240125145054441](https://lsky.hhdxw.top/imghub/2024/01/image-202401251706165455.png)

View File

@ -1,14 +1,15 @@
<template> <template>
<div> <div>
<el-input disabled :value="$route.query.roleName" /> <el-input :value="$route.query.roleName" disabled/>
<el-tree <el-tree
ref="tree" ref="tree"
style="margin: 20px 0"
:data="allPermissions" :data="allPermissions"
:default-checked-keys="assignPermission"
:props="defaultProps"
default-expand-all
node-key="id" node-key="id"
show-checkbox show-checkbox
default-expand-all style="margin: 20px 0"
:props="defaultProps"
/> />
<el-button :loading="loading" type="primary" @click="save">保存</el-button> <el-button :loading="loading" type="primary" @click="save">保存</el-button>
<el-button @click="$router.replace({name: 'Role'})">取消</el-button> <el-button @click="$router.replace({name: 'Role'})">取消</el-button>
@ -48,8 +49,11 @@ export default {
*/ */
getPermissions(roleId) { getPermissions(roleId) {
this.$API.permission.toAssign(roleId).then(result => { this.$API.permission.toAssign(roleId).then(result => {
const allPermissions = result.data const allPermissions = result.data.allPermissionList
this.allPermissions = allPermissions this.allPermissions = allPermissions
const assignPermission = result.data.assignPermission
this.assignPermission = assignPermission
const checkedIds = this.getCheckedIds(allPermissions) const checkedIds = this.getCheckedIds(allPermissions)
// console.log('getPermissions() checkedIds', checkedIds) // console.log('getPermissions() checkedIds', checkedIds)
this.$refs.tree.setCheckedKeys(checkedIds) this.$refs.tree.setCheckedKeys(checkedIds)

View File

@ -13,7 +13,7 @@ import java.util.Date;
* 日期操作工具类 * 日期操作工具类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/12 18:04 * @since 2023/10/12 18:04
*/ */
public class DateUtil { public class DateUtil {

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Package: com.yovinchen.xlcs.common.utils * Package: com.yovinchen.xlcs.common.utils
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 15:50 * @since 2023/9/22 15:50
*/ */
public class JwtHelper { public class JwtHelper {

View File

@ -10,7 +10,7 @@ import org.springframework.context.annotation.Configuration;
* Package: com.yovinchen.xlcs.mq.config * Package: com.yovinchen.xlcs.mq.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 23:32 * @since 2023/9/16 23:32
*/ */
@Configuration @Configuration
public class MQConfig { public class MQConfig {

View File

@ -13,7 +13,7 @@ import javax.annotation.PostConstruct;
* Package: com.yovinchen.xlcs.mq.config * Package: com.yovinchen.xlcs.mq.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 23:33 * @since 2023/9/16 23:33
*/ */
@Component @Component
public class MQProducerAckConfig implements RabbitTemplate.ReturnCallback, RabbitTemplate.ConfirmCallback { public class MQProducerAckConfig implements RabbitTemplate.ReturnCallback, RabbitTemplate.ConfirmCallback {

View File

@ -5,7 +5,7 @@ package com.yovinchen.xlcs.mq.constant;
* Package: com.yovinchen.xlcs.mq.constant * Package: com.yovinchen.xlcs.mq.constant
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 23:34 * @since 2023/9/16 23:34
*/ */
public class MqConst { public class MqConst {
/** /**

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
* Package: com.yovinchen.xlcs.common.service * Package: com.yovinchen.xlcs.common.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 18:12 * @since 2023/9/16 18:12
*/ */
@Service @Service
public class RabbitService { public class RabbitService {

View File

@ -27,7 +27,7 @@ import javax.servlet.http.HttpServletRequest;
* Package: com.yovinchen.xlcs.common.aspect * Package: com.yovinchen.xlcs.common.aspect
* *
* @author yovinchen * @author yovinchen
* @Create 2024/1/23 10:43 * @since 2024/1/23 10:43
*/ */
@Aspect @Aspect
@Component @Component

View File

@ -7,7 +7,7 @@ import com.yovinchen.xlcs.vo.user.UserLoginVo;
* Package: com.yovinchen.xlcs.common.auth * Package: com.yovinchen.xlcs.common.auth
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 17:40 * @since 2023/9/22 17:40
*/ */
//ThreadLocal工具类 //ThreadLocal工具类
public class AuthContextHolder { public class AuthContextHolder {

View File

@ -12,7 +12,7 @@ import javax.annotation.Resource;
* Package: com.yovinchen.xlcs.common.auth * Package: com.yovinchen.xlcs.common.auth
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 23:58 * @since 2023/9/22 23:58
*/ */
@Configuration @Configuration
public class LoginMvcConfigurerAdapter extends WebMvcConfigurationSupport { public class LoginMvcConfigurerAdapter extends WebMvcConfigurationSupport {

View File

@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletResponse;
* Package: com.yovinchen.xlcs.common.auth * Package: com.yovinchen.xlcs.common.auth
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 23:47 * @since 2023/9/22 23:47
*/ */
public class UserLoginInterceptor implements HandlerInterceptor { public class UserLoginInterceptor implements HandlerInterceptor {

View File

@ -14,7 +14,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
* MybatisPlus配置类 * MybatisPlus配置类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 12:56 * @since 2023/9/13 12:56
*/ */
@EnableTransactionManagement @EnableTransactionManagement
@Configuration @Configuration

View File

@ -26,7 +26,7 @@ import java.time.Duration;
* Redis配置类 * Redis配置类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 15:55 * @since 2023/9/22 15:55
*/ */
@Configuration @Configuration

View File

@ -15,7 +15,7 @@ import org.springframework.util.StringUtils;
* Package: com.yovinchen.xlcs.common.config * Package: com.yovinchen.xlcs.common.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/12 16:48 * @since 2023/10/12 16:48
*/ */
@Data @Data
@Configuration @Configuration

View File

@ -22,7 +22,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.common.config * Package: com.yovinchen.xlcs.common.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 13:18 * @since 2023/9/13 13:18
*/ */
@Configuration @Configuration
@EnableSwagger2WebMvc @EnableSwagger2WebMvc

View File

@ -6,7 +6,7 @@ package com.yovinchen.xlcs.common.constant;
* Redis常量配置类 * Redis常量配置类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/22 15:57 * @since 2023/9/22 15:57
*/ */
public class RedisConst { public class RedisConst {

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
* 统一异常处理类 * 统一异常处理类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 13:03 * @since 2023/9/13 13:03
*/ */
@ControllerAdvice @ControllerAdvice

View File

@ -9,7 +9,7 @@ import lombok.Data;
* 自定义异常类 * 自定义异常类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 13:05 * @since 2023/9/13 13:05
*/ */
@Data @Data

View File

@ -8,7 +8,7 @@ import lombok.Data;
* 统一返回结果类 * 统一返回结果类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 13:01 * @since 2023/9/13 13:01
*/ */
@Data @Data
public class Result<T> { public class Result<T> {

View File

@ -8,7 +8,7 @@ import lombok.Getter;
* 统一返回结果状态信息类 * 统一返回结果状态信息类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 12:59 * @since 2023/9/13 12:59
*/ */
@Getter @Getter
public enum ResultCodeEnum { public enum ResultCodeEnum {

View File

@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 08:49 * @since 2023/9/14 08:49
*/ */
public class CodeGet { public class CodeGet {
@ -25,7 +25,7 @@ public class CodeGet {
// 2全局配置 // 2全局配置
// 全局配置 // 全局配置
GlobalConfig gc = new GlobalConfig(); GlobalConfig gc = new GlobalConfig();
gc.setOutputDir("yovinchen-xlcs-parent/service/service-order" + "/src/main/java"); gc.setOutputDir("xlcs-parent/service/service-acl" + "/src/main/java");
gc.setServiceName("%sService"); //去掉Service接口的首字母I gc.setServiceName("%sService"); //去掉Service接口的首字母I
gc.setAuthor("yovinchen"); gc.setAuthor("yovinchen");
@ -34,17 +34,17 @@ public class CodeGet {
// 3数据源配置 // 3数据源配置
DataSourceConfig dsc = new DataSourceConfig(); DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-order?serverTimezone=GMT%2B8&useSSL=false"); dsc.setUrl("jdbc:mysql://82.157.68.223:3306/shequ-acl?serverTimezone=GMT%2B8&useSSL=false");
dsc.setDriverName("com.mysql.cj.jdbc.Driver"); dsc.setDriverName("com.mysql.cj.jdbc.Driver");
dsc.setUsername("shequ-order"); dsc.setUsername("shequ-acl");
dsc.setPassword("shequ-order"); dsc.setPassword("shequ-acl");
dsc.setDbType(DbType.MYSQL); dsc.setDbType(DbType.MYSQL);
mpg.setDataSource(dsc); mpg.setDataSource(dsc);
// 4包配置 // 4包配置
PackageConfig pc = new PackageConfig(); PackageConfig pc = new PackageConfig();
pc.setParent("com.yovinchen.xlcs"); pc.setParent("com.yovinchen.xlcs");
pc.setModuleName("order"); //模块名 pc.setModuleName("acl"); //模块名
pc.setController("controller"); pc.setController("controller");
pc.setService("service"); pc.setService("service");
pc.setMapper("mapper"); pc.setMapper("mapper");
@ -53,7 +53,7 @@ public class CodeGet {
// 5策略配置 // 5策略配置
StrategyConfig strategy = new StrategyConfig(); StrategyConfig strategy = new StrategyConfig();
strategy.setInclude("cart_info", "order_info", "order_deliver", "order_item", "order_log", "order_return_apply", "order_return_reason", "order_set", "payment_info", "refund_info"); strategy.setInclude("role_permission", "admin_login_log");
strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略 strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.model.acl; package com.yovinchen.xlcs.model.acl;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -12,8 +12,8 @@ import lombok.Data;
* 用户 * 用户
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "用户") @ApiModel(description = "用户")

View File

@ -0,0 +1,40 @@
package com.yovinchen.xlcs.model.acl;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* <p>
* 后台用户登录日志表
* </p>
*
* @author yovinchen
* @since 2024-01-24
*/
@Data
@ApiModel(description = "后台用户登录日志表")
@TableName("admin_login_log")
public class AdminLoginLog extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "用户id")
@TableField("admin_id")
private Long adminId;
@ApiModelProperty(value = "IP地址")
@TableField("ip")
private String ip;
@ApiModelProperty(value = "地址")
@TableField("address")
private String address;
@ApiModelProperty(value = "浏览器登录类型")
@TableField("user_agent")
private String userAgent;
}

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.model.acl; package com.yovinchen.xlcs.model.acl;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -12,8 +12,8 @@ import lombok.Data;
* 用户角色 * 用户角色
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "用户角色") @ApiModel(description = "用户角色")

View File

@ -2,9 +2,9 @@
// //
package com.yovinchen.xlcs.model.acl; package com.yovinchen.xlcs.model.acl;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -16,8 +16,8 @@ import java.util.List;
* 权限 * 权限
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "权限") @ApiModel(description = "权限")

View File

@ -2,9 +2,9 @@
// //
package com.yovinchen.xlcs.model.acl; package com.yovinchen.xlcs.model.acl;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -14,8 +14,8 @@ import lombok.Data;
* 角色 * 角色
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "角色") @ApiModel(description = "角色")

View File

@ -2,9 +2,9 @@
// //
package com.yovinchen.xlcs.model.acl; package com.yovinchen.xlcs.model.acl;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -14,8 +14,8 @@ import lombok.Data;
* 角色权限 * 角色权限
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "角色权限") @ApiModel(description = "角色权限")

View File

@ -1,10 +1,10 @@
package com.yovinchen.xlcs.model.activity; package com.yovinchen.xlcs.model.activity;
import com.yovinchen.xlcs.enums.ActivityType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.yovinchen.xlcs.enums.ActivityType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -16,7 +16,7 @@ import java.util.Date;
* ActivityInfo * ActivityInfo
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "ActivityInfo") @ApiModel(description = "ActivityInfo")

View File

@ -1,9 +1,9 @@
package com.yovinchen.xlcs.model.activity; package com.yovinchen.xlcs.model.activity;
import com.yovinchen.xlcs.enums.ActivityType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.enums.ActivityType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -15,7 +15,7 @@ import java.math.BigDecimal;
* ActivityRule * ActivityRule
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "ActivityRule") @ApiModel(description = "ActivityRule")

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.model.activity; package com.yovinchen.xlcs.model.activity;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -12,7 +12,7 @@ import lombok.Data;
* ActivitySku * ActivitySku
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "ActivitySku") @ApiModel(description = "ActivitySku")

View File

@ -1,9 +1,9 @@
package com.yovinchen.xlcs.model.activity; package com.yovinchen.xlcs.model.activity;
import com.yovinchen.xlcs.enums.CouponRangeType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.enums.CouponRangeType;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -13,7 +13,7 @@ import lombok.Data;
* CouponRange * CouponRange
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "CouponRange") @ApiModel(description = "CouponRange")

View File

@ -1,9 +1,9 @@
package com.yovinchen.xlcs.model.activity; package com.yovinchen.xlcs.model.activity;
import com.yovinchen.xlcs.enums.CouponStatus;
import com.yovinchen.xlcs.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yovinchen.xlcs.enums.CouponStatus;
import com.yovinchen.xlcs.model.base.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -15,7 +15,7 @@ import java.util.Date;
* CouponUse * CouponUse
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "优惠券领取记录表") @ApiModel(description = "优惠券领取记录表")

View File

@ -13,8 +13,8 @@ import java.io.Serializable;
* 用户查询实体 * 用户查询实体
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "用户查询实体") @ApiModel(description = "用户查询实体")

View File

@ -13,8 +13,8 @@ import java.io.Serializable;
* 角色查询实体 * 角色查询实体
* </p> * </p>
* *
* @author qy * @author yovinchen
* @since 2019-11-08 * @since 2023-09-21
*/ */
@Data @Data
@ApiModel(description = "角色查询实体") @ApiModel(description = "角色查询实体")

View File

@ -13,7 +13,7 @@ import java.util.List;
* OrderDetailActivity * OrderDetailActivity
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
public class CartInfoVo implements Serializable { public class CartInfoVo implements Serializable {

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.vo.order; package com.yovinchen.xlcs.vo.order;
import com.yovinchen.xlcs.vo.user.LeaderAddressVo;
import com.yovinchen.xlcs.model.activity.CouponInfo; import com.yovinchen.xlcs.model.activity.CouponInfo;
import com.yovinchen.xlcs.vo.user.LeaderAddressVo;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -14,7 +14,7 @@ import java.util.List;
* OrderDetailActivity * OrderDetailActivity
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
public class OrderConfirmVo implements Serializable { public class OrderConfirmVo implements Serializable {

View File

@ -12,7 +12,7 @@ import java.util.List;
* OrderDetailActivity * OrderDetailActivity
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
public class OrderMqVo implements Serializable { public class OrderMqVo implements Serializable {

View File

@ -1,6 +1,5 @@
package com.yovinchen.xlcs.vo.user; package com.yovinchen.xlcs.vo.user;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -10,7 +9,7 @@ import lombok.Data;
* UserAddress * UserAddress
* </p> * </p>
* *
* @author qy * @author yovinchen
*/ */
@Data @Data
@ApiModel(description = "用户地址") @ApiModel(description = "用户地址")

View File

@ -19,7 +19,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.client.activity * Package: com.yovinchen.xlcs.client.activity
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/26 14:10 * @since 2023/9/26 14:10
*/ */
@FeignClient(value = "service-activity") @FeignClient(value = "service-activity")
public interface ActivityFeignClient { public interface ActivityFeignClient {

View File

@ -13,7 +13,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.client.cart * Package: com.yovinchen.xlcs.client.cart
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/12 15:49 * @since 2023/10/12 15:49
*/ */
@FeignClient(value = "service-cart") @FeignClient(value = "service-cart")
public interface CartFeignClient { public interface CartFeignClient {

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.PathVariable;
* Package: com.yovinchen.xlcs.client.order * Package: com.yovinchen.xlcs.client.order
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 11:03 * @since 2023/10/13 11:03
*/ */
@FeignClient(value = "service-order") @FeignClient(value = "service-order")
public interface OrderFeignClient { public interface OrderFeignClient {

View File

@ -17,7 +17,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.client.product * Package: com.yovinchen.xlcs.client.product
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 17:45 * @since 2023/9/16 17:45
*/ */
@FeignClient(value = "service-product") @FeignClient(value = "service-product")
public interface ProductFeignClient { public interface ProductFeignClient {

View File

@ -13,7 +13,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.client.search * Package: com.yovinchen.xlcs.client.search
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 22:44 * @since 2023/9/25 22:44
*/ */
@FeignClient("service-search") @FeignClient("service-search")
public interface SkuFeignClient { public interface SkuFeignClient {

View File

@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.PathVariable;
* Package: com.yovinchen.xlcs.client.user * Package: com.yovinchen.xlcs.client.user
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 12:27 * @since 2023/9/25 12:27
*/ */
@FeignClient(value = "service-user") @FeignClient(value = "service-user")
public interface UserFeignClient { public interface UserFeignClient {

View File

@ -9,7 +9,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/20 16:51 * @since 2023/9/20 16:51
*/ */
@SpringBootApplication @SpringBootApplication

View File

@ -12,7 +12,7 @@ import org.springframework.web.util.pattern.PathPatternParser;
* Package: com.yovinchen.xlcs.config.config * Package: com.yovinchen.xlcs.config.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/20 16:52 * @since 2023/9/20 16:52
*/ */
@Configuration @Configuration
public class CorsConfig { public class CorsConfig {

View File

@ -10,7 +10,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
* 权限管理模块启动类 * 权限管理模块启动类
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 17:38 * @since 2023/9/13 17:38
*/ */
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -1,14 +1,14 @@
package com.yovinchen.xlcs.acl.controller; package com.yovinchen.xlcs.acl.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yovinchen.xlcs.acl.service.AdminService; import com.yovinchen.xlcs.acl.service.AdminService;
import com.yovinchen.xlcs.acl.service.RoleService; import com.yovinchen.xlcs.acl.service.RoleService;
import com.yovinchen.xlcs.common.result.Result; import com.yovinchen.xlcs.common.result.Result;
import com.yovinchen.xlcs.common.utils.MD5; import com.yovinchen.xlcs.common.utils.MD5;
import com.yovinchen.xlcs.model.acl.Admin; import com.yovinchen.xlcs.model.acl.Admin;
import com.yovinchen.xlcs.vo.acl.AdminQueryVo; import com.yovinchen.xlcs.vo.acl.AdminQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
@ -25,7 +25,7 @@ import java.util.Map;
* 用户管理 前端控制器 * 用户管理 前端控制器
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 10:38 * @since 2023/9/14 10:38
*/ */
@RestController @RestController
@RequestMapping("/admin/acl/user") @RequestMapping("/admin/acl/user")

View File

@ -15,7 +15,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.acl.controller * Package: com.yovinchen.xlcs.acl.controller
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/13 18:00 * @since 2023/9/13 18:00
*/ */
@Api(tags = "登录接口") @Api(tags = "登录接口")

View File

@ -1,6 +1,7 @@
package com.yovinchen.xlcs.acl.controller; package com.yovinchen.xlcs.acl.controller;
import com.yovinchen.xlcs.acl.service.PermissionService; import com.yovinchen.xlcs.acl.service.PermissionService;
import com.yovinchen.xlcs.acl.service.RoleService;
import com.yovinchen.xlcs.common.result.Result; import com.yovinchen.xlcs.common.result.Result;
import com.yovinchen.xlcs.model.acl.Permission; import com.yovinchen.xlcs.model.acl.Permission;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -10,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* ClassName: PermissionController * ClassName: PermissionController
@ -17,7 +19,7 @@ import java.util.List;
* 菜单服务 * 菜单服务
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 14:03 * @since 2023/9/14 14:03
*/ */
@RestController @RestController
@RequestMapping("/admin/acl/permission") @RequestMapping("/admin/acl/permission")
@ -28,6 +30,8 @@ public class PermissionController {
@Autowired @Autowired
private PermissionService permissionService; private PermissionService permissionService;
@Autowired
private RoleService roleService;
@ApiOperation(value = "获取菜单") @ApiOperation(value = "获取菜单")
@GetMapping @GetMapping
public Result index() { public Result index() {
@ -71,4 +75,29 @@ public class PermissionController {
throw new RuntimeException("递归删除菜单异常", e); throw new RuntimeException("递归删除菜单异常", e);
} }
} }
@ApiOperation(value = "根据角色获取菜单数据")
@GetMapping("/toAssign/{roleId}")
public Result toAssign(@PathVariable Long roleId) {
Map<String, Object> roleMap = permissionService.findPermissionByRoleId(roleId);
return Result.ok(roleMap);
}
@ApiOperation(value = "根据用户分配角色")
@PostMapping("/doAssign")
public Result doAssign(@RequestParam Long roleId, @RequestParam Long[] permissionId) {
permissionService.saveRolePermissionRealtionShip(roleId, permissionId);
return Result.ok(null);
}
// @ApiOperation(value = "获取一个角色的所有权限列表")
// @GetMapping("toAssign/{id}")
// public Result toAssign(@PathVariable Long id) {
// try {
// Map<String, Object> result = permissionService.getPermissionById(id);
// return Result.ok(result);
// } catch (Exception e) {
// // 处理异常例如记录日志或者抛出自定义异常
// throw new RuntimeException("获取一个角色的所有权限列表异常", e);
// }
// }
} }

View File

@ -15,7 +15,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* ClassName: RoleController * ClassName: RoleController
@ -23,7 +22,7 @@ import java.util.Map;
* 角色管理 前端控制器 * 角色管理 前端控制器
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 09:09 * @since 2023/9/14 09:09
*/ */
@RestController @RestController
@RequestMapping("/admin/acl/role") @RequestMapping("/admin/acl/role")
@ -111,16 +110,4 @@ public class RoleController {
throw new RuntimeException("根据id列表删除角色异常", e); throw new RuntimeException("根据id列表删除角色异常", e);
} }
} }
@ApiOperation(value = "获取一个角色的所有权限列表")
@GetMapping("toAssign/{id}")
public Result toAssign(@PathVariable Long id) {
try {
Map<String, Object> result = permissionService.getPermissionById(id);
return Result.ok(result);
} catch (Exception e) {
// 处理异常例如记录日志或者抛出自定义异常
throw new RuntimeException("获取一个角色的所有权限列表异常", e);
}
}
} }

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.acl.mapper; package com.yovinchen.xlcs.acl.mapper;
import com.yovinchen.xlcs.model.acl.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yovinchen.xlcs.model.acl.Admin;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
@ -10,7 +10,7 @@ import org.springframework.stereotype.Repository;
* 用户管理 * 用户管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 10:45 * @since 2023/9/14 10:45
*/ */
@Repository @Repository
public interface AdminMapper extends BaseMapper<Admin> { public interface AdminMapper extends BaseMapper<Admin> {

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.acl.mapper; package com.yovinchen.xlcs.acl.mapper;
import com.yovinchen.xlcs.model.acl.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yovinchen.xlcs.model.acl.AdminRole;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
@ -9,7 +9,7 @@ import org.springframework.stereotype.Repository;
* Package: com.yovinchen.xlcs.acl.mapper * Package: com.yovinchen.xlcs.acl.mapper
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 11:15 * @since 2023/9/14 11:15
*/ */
@Repository @Repository
public interface AdminRoleMapper extends BaseMapper<AdminRole> { public interface AdminRoleMapper extends BaseMapper<AdminRole> {

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.acl.mapper; package com.yovinchen.xlcs.acl.mapper;
import com.yovinchen.xlcs.model.acl.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yovinchen.xlcs.model.acl.Permission;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
@ -10,7 +10,7 @@ import org.springframework.stereotype.Repository;
* 菜单Mapper接口 * 菜单Mapper接口
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 13:59 * @since 2023/9/14 13:59
*/ */
@Repository @Repository
public interface PermissionMapper extends BaseMapper<Permission> { public interface PermissionMapper extends BaseMapper<Permission> {

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.acl.mapper; package com.yovinchen.xlcs.acl.mapper;
import com.yovinchen.xlcs.model.acl.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yovinchen.xlcs.model.acl.Role;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
@ -10,7 +10,7 @@ import org.springframework.stereotype.Repository;
* 角色管理 * 角色管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 09:11 * @since 2023/9/14 09:11
*/ */
@Repository @Repository
public interface RoleMapper extends BaseMapper<Role> { public interface RoleMapper extends BaseMapper<Role> {

View File

@ -1,14 +1,14 @@
package com.yovinchen.xlcs.acl.mapper; package com.yovinchen.xlcs.acl.mapper;
import com.yovinchen.xlcs.model.acl.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yovinchen.xlcs.model.acl.RolePermission;
/** /**
* ClassName: RolePermissionMapper * ClassName: RolePermissionMapper
* Package: com.yovinchen.xlcs.acl.mapper * Package: com.yovinchen.xlcs.acl.mapper
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 15:07 * @since 2023/9/14 15:07
*/ */
public interface RolePermissionMapper extends BaseMapper<RolePermission> { public interface RolePermissionMapper extends BaseMapper<RolePermission> {
} }

View File

@ -1,14 +1,14 @@
package com.yovinchen.xlcs.acl.service; package com.yovinchen.xlcs.acl.service;
import com.yovinchen.xlcs.model.acl.AdminRole;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yovinchen.xlcs.model.acl.AdminRole;
/** /**
* ClassName: AdminRoleService * ClassName: AdminRoleService
* Package: com.yovinchen.xlcs.acl.service * Package: com.yovinchen.xlcs.acl.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 11:15 * @since 2023/9/14 11:15
*/ */
public interface AdminRoleService extends IService<AdminRole> { public interface AdminRoleService extends IService<AdminRole> {
} }

View File

@ -1,10 +1,10 @@
package com.yovinchen.xlcs.acl.service; package com.yovinchen.xlcs.acl.service;
import com.yovinchen.xlcs.model.acl.Admin;
import com.yovinchen.xlcs.vo.acl.AdminQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yovinchen.xlcs.model.acl.Admin;
import com.yovinchen.xlcs.vo.acl.AdminQueryVo;
/** /**
* ClassName: AdminService * ClassName: AdminService
@ -12,7 +12,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 用户管理 * 用户管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 10:44 * @since 2023/9/14 10:44
*/ */
public interface AdminService extends IService<Admin> { public interface AdminService extends IService<Admin> {

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.acl.service; package com.yovinchen.xlcs.acl.service;
import com.yovinchen.xlcs.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yovinchen.xlcs.model.acl.Permission;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -12,7 +12,7 @@ import java.util.Map;
* 权限服务 * 权限服务
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 14:01 * @since 2023/9/14 14:01
*/ */
public interface PermissionService extends IService<Permission> { public interface PermissionService extends IService<Permission> {
@ -23,4 +23,8 @@ public interface PermissionService extends IService<Permission> {
boolean removeChildById(Long id); boolean removeChildById(Long id);
Map<String, Object> getPermissionById(Long id); Map<String, Object> getPermissionById(Long id);
void saveRolePermissionRealtionShip(Long roleId, Long[] permissionId);
Map<String, Object> findPermissionByRoleId(Long roleId);
} }

View File

@ -1,10 +1,10 @@
package com.yovinchen.xlcs.acl.service; package com.yovinchen.xlcs.acl.service;
import com.yovinchen.xlcs.model.acl.Role;
import com.yovinchen.xlcs.vo.acl.RoleQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yovinchen.xlcs.model.acl.Role;
import com.yovinchen.xlcs.vo.acl.RoleQueryVo;
import java.util.Map; import java.util.Map;
@ -14,7 +14,7 @@ import java.util.Map;
* 用户管理 * 用户管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 09:10 * @since 2023/9/14 09:10
*/ */
public interface RoleService extends IService<Role> { public interface RoleService extends IService<Role> {

View File

@ -1,9 +1,9 @@
package com.yovinchen.xlcs.acl.service.impl; package com.yovinchen.xlcs.acl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yovinchen.xlcs.acl.mapper.AdminRoleMapper; import com.yovinchen.xlcs.acl.mapper.AdminRoleMapper;
import com.yovinchen.xlcs.acl.service.AdminRoleService; import com.yovinchen.xlcs.acl.service.AdminRoleService;
import com.yovinchen.xlcs.model.acl.AdminRole; import com.yovinchen.xlcs.model.acl.AdminRole;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* Package: com.yovinchen.xlcs.acl.service.impl * Package: com.yovinchen.xlcs.acl.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 11:15 * @since 2023/9/14 11:15
*/ */
@Service @Service
public class AdminRoleServiceImpl extends ServiceImpl<AdminRoleMapper, AdminRole> public class AdminRoleServiceImpl extends ServiceImpl<AdminRoleMapper, AdminRole>

View File

@ -20,7 +20,7 @@ import org.springframework.util.StringUtils;
* 用户管理 * 用户管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 10:44 * @since 2023/9/14 10:44
*/ */
@Slf4j @Slf4j
@Service @Service

View File

@ -1,27 +1,38 @@
package com.yovinchen.xlcs.acl.service.impl; package com.yovinchen.xlcs.acl.service.impl;
import com.yovinchen.xlcs.acl.mapper.PermissionMapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yovinchen.xlcs.acl.service.PermissionService;
import com.yovinchen.xlcs.acl.utils.PermissionHelper;
import com.yovinchen.xlcs.model.acl.Permission;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yovinchen.xlcs.acl.mapper.PermissionMapper;
import com.yovinchen.xlcs.acl.service.PermissionService;
import com.yovinchen.xlcs.acl.service.RolePermissionService;
import com.yovinchen.xlcs.acl.utils.PermissionHelper;
import com.yovinchen.xlcs.model.acl.Permission;
import com.yovinchen.xlcs.model.acl.RolePermission;
import com.yovinchen.xlcs.model.base.BaseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
/** /**
* ClassName: PermissionServiceImpl * ClassName: PermissionServiceImpl
* Package: com.yovinchen.xlcs.acl.service.impl * Package: com.yovinchen.xlcs.acl.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 14:02 * @since 2023/9/14 14:02
*/ */
@Service @Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService { public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {
@Autowired
private RolePermissionService rolePermissionService;
/** /**
* 获取所有菜单 * 获取所有菜单
@ -57,6 +68,71 @@ public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permiss
return null; return null;
} }
/**
* 分配菜单
*
* @param roleId
* @param permissionIds
*/
@Override
@Transactional(rollbackFor = Exception.class)
public void saveRolePermissionRealtionShip(Long roleId, Long[] permissionIds) {
//删除用户分配的角色数据
rolePermissionService.remove(new LambdaQueryWrapper<RolePermission>().eq(RolePermission::getRoleId, roleId));
//分配新的角色
List<RolePermission> rolePermissionList = new ArrayList<>();
for (Long permissionId : permissionIds) {
if (StringUtils.isEmpty(roleId)) {
continue;
}
RolePermission rolePermission = new RolePermission();
rolePermission.setRoleId(roleId);
rolePermission.setPermissionId(permissionId);
rolePermissionList.add(rolePermission);
}
rolePermissionService.saveBatch(rolePermissionList);
}
/**
* 根据用户获取菜单数据
*
* @param roleId
* @return
*/
@Override
public Map<String, Object> findPermissionByRoleId(Long roleId) {
//查询所有的角色
List<Permission> allPermissionList = queryAllMenu();
List<Permission> assignPermission1 = baseMapper.selectList(null);
//拥有的角色id
List<RolePermission> existRolePermissionList = rolePermissionService.list(new LambdaQueryWrapper<RolePermission>().eq(RolePermission::getRoleId, roleId)
.select(RolePermission::getPermissionId));
List<Long> existPermissionList = existRolePermissionList.stream()
.map(RolePermission::getPermissionId)
.collect(Collectors.toList());
//对角色进行分类
List<Permission> assignPermission2 = new ArrayList<>();
for (Permission permission : assignPermission1) {
//已分配
if (existPermissionList.contains(permission.getId())) {
assignPermission2.add(permission);
}
}
List<Long> assignPermission = assignPermission2.stream()
.map(BaseEntity::getId)
.collect(Collectors.toList());
Map<String, Object> roleMap = new HashMap<>();
roleMap.put("assignPermission", assignPermission);
roleMap.put("allPermissionList", allPermissionList);
return roleMap;
}
/** /**
* 递归获取子节点 * 递归获取子节点
* *
@ -64,8 +140,7 @@ public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permiss
* @param idList * @param idList
*/ */
private void selectChildListById(Long id, List<Long> idList) { private void selectChildListById(Long id, List<Long> idList) {
List<Permission> childList = baseMapper.selectList(new QueryWrapper<Permission>() List<Permission> childList = baseMapper.selectList(new QueryWrapper<Permission>().eq("pid", id)
.eq("pid", id)
.select("id")); .select("id"));
childList.forEach(item -> { childList.forEach(item -> {
idList.add(item.getId()); idList.add(item.getId());

View File

@ -1,16 +1,16 @@
package com.yovinchen.xlcs.acl.service.impl; package com.yovinchen.xlcs.acl.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yovinchen.xlcs.acl.mapper.RoleMapper; import com.yovinchen.xlcs.acl.mapper.RoleMapper;
import com.yovinchen.xlcs.acl.service.AdminRoleService; import com.yovinchen.xlcs.acl.service.AdminRoleService;
import com.yovinchen.xlcs.acl.service.RoleService; import com.yovinchen.xlcs.acl.service.RoleService;
import com.yovinchen.xlcs.model.acl.AdminRole; import com.yovinchen.xlcs.model.acl.AdminRole;
import com.yovinchen.xlcs.model.acl.Role; import com.yovinchen.xlcs.model.acl.Role;
import com.yovinchen.xlcs.vo.acl.RoleQueryVo; import com.yovinchen.xlcs.vo.acl.RoleQueryVo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -28,7 +28,7 @@ import java.util.stream.Collectors;
* 角色管理 * 角色管理
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 09:11 * @since 2023/9/14 09:11
*/ */
@Service @Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService { public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

View File

@ -10,7 +10,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.acl.utils * Package: com.yovinchen.xlcs.acl.utils
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/14 14:23 * @since 2023/9/14 14:23
*/ */
public class PermissionHelper { public class PermissionHelper {

View File

@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/17 12:08 * @since 2023/9/17 12:08
*/ */
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -21,7 +21,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.activity.api * Package: com.yovinchen.xlcs.activity.api
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/26 14:12 * @since 2023/9/26 14:12
*/ */
@Api(tags = "促销与优惠券接口") @Api(tags = "促销与优惠券接口")
@RestController @RestController

View File

@ -11,7 +11,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/8 22:26 * @since 2023/10/8 22:26
*/ */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -17,7 +17,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.cart.cart.controller * Package: com.yovinchen.xlcs.cart.cart.controller
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/8 22:32 * @since 2023/10/8 22:32
*/ */
@RestController @RestController
@RequestMapping("/api/cart") @RequestMapping("/api/cart")

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.cart.receiver; package com.yovinchen.xlcs.cart.receiver;
import com.rabbitmq.client.Channel;
import com.yovinchen.xlcs.cart.service.CartInfoService; import com.yovinchen.xlcs.cart.service.CartInfoService;
import com.yovinchen.xlcs.mq.constant.MqConst; import com.yovinchen.xlcs.mq.constant.MqConst;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.Exchange; import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue; import org.springframework.amqp.rabbit.annotation.Queue;
@ -18,7 +18,7 @@ import java.io.IOException;
* Package: com.yovinchen.xlcs.cart.cart.receiver * Package: com.yovinchen.xlcs.cart.cart.receiver
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 08:56 * @since 2023/10/13 08:56
*/ */
@Component @Component
public class CartReceiver { public class CartReceiver {

View File

@ -9,7 +9,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.cart.cart.service * Package: com.yovinchen.xlcs.cart.cart.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/8 22:33 * @since 2023/10/8 22:33
*/ */
public interface CartInfoService { public interface CartInfoService {
/** /**

View File

@ -26,7 +26,7 @@ import java.util.stream.Collectors;
* Package: com.yovinchen.xlcs.cart.cart.service.impl * Package: com.yovinchen.xlcs.cart.cart.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/8 22:34 * @since 2023/10/8 22:34
*/ */
@Service @Service
public class CartInfoServiceImpl implements CartInfoService { public class CartInfoServiceImpl implements CartInfoService {

View File

@ -11,7 +11,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 12:06 * @since 2023/9/25 12:06
*/ */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit;
* Package: com.yovinchen.xlcs.home.config * Package: com.yovinchen.xlcs.home.config
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/8 14:47 * @since 2023/10/8 14:47
*/ */
@Configuration @Configuration

View File

@ -22,7 +22,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.home.controller * Package: com.yovinchen.xlcs.home.controller
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 12:10 * @since 2023/9/25 12:10
*/ */
@Api(tags = "首页接口") @Api(tags = "首页接口")

View File

@ -7,7 +7,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.home.service * Package: com.yovinchen.xlcs.home.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 12:12 * @since 2023/9/25 12:12
*/ */
public interface HomeService { public interface HomeService {
/** /**

View File

@ -7,7 +7,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.home.service * Package: com.yovinchen.xlcs.home.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/7 15:01 * @since 2023/10/7 15:01
*/ */
public interface ItemService { public interface ItemService {
/** /**

View File

@ -20,7 +20,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.home.service.impl * Package: com.yovinchen.xlcs.home.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/25 12:12 * @since 2023/9/25 12:12
*/ */
@Service @Service
public class HomeServiceImpl implements HomeService { public class HomeServiceImpl implements HomeService {

View File

@ -19,7 +19,7 @@ import java.util.concurrent.ThreadPoolExecutor;
* Package: com.yovinchen.xlcs.home.service.impl * Package: com.yovinchen.xlcs.home.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/7 15:02 * @since 2023/10/7 15:02
*/ */
@Service @Service
public class ItemServiceImpl implements ItemService { public class ItemServiceImpl implements ItemService {

View File

@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/11 19:09 * @since 2023/10/11 19:09
*/ */
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.order.receiver; package com.yovinchen.xlcs.order.receiver;
import com.rabbitmq.client.Channel;
import com.yovinchen.xlcs.mq.constant.MqConst; import com.yovinchen.xlcs.mq.constant.MqConst;
import com.yovinchen.xlcs.order.service.OrderInfoService; import com.yovinchen.xlcs.order.service.OrderInfoService;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.Exchange; import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue; import org.springframework.amqp.rabbit.annotation.Queue;
@ -19,7 +19,7 @@ import java.io.IOException;
* Package: com.yovinchen.xlcs.order.receiver * Package: com.yovinchen.xlcs.order.receiver
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 14:15 * @since 2023/10/13 14:15
*/ */
@Component @Component
public class OrderReceiver { public class OrderReceiver {

View File

@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: vom.yovinchen.xlcs * Package: vom.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:29 * @since 2023/10/13 10:29
*/ */
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -21,7 +21,7 @@ import java.util.Map;
* 微信支付API * 微信支付API
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:32 * @since 2023/10/13 10:32
*/ */
@Api(tags = "微信支付接口") @Api(tags = "微信支付接口")
@RestController @RestController

View File

@ -1,7 +1,7 @@
package com.yovinchen.xlcs.payment.service; package com.yovinchen.xlcs.payment.service;
import com.yovinchen.xlcs.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yovinchen.xlcs.model.order.PaymentInfo;
import java.util.Map; import java.util.Map;
@ -10,7 +10,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.payment.payment.service * Package: com.yovinchen.xlcs.payment.payment.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:33 * @since 2023/10/13 10:33
*/ */
public interface PaymentInfoService extends IService<PaymentInfo> { public interface PaymentInfoService extends IService<PaymentInfo> {

View File

@ -7,7 +7,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.payment.payment.controller.payment.service * Package: com.yovinchen.xlcs.payment.payment.controller.payment.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:32 * @since 2023/10/13 10:32
*/ */
public interface WeixinService { public interface WeixinService {
/** /**

View File

@ -1,5 +1,6 @@
package com.yovinchen.xlcs.payment.service.impl; package com.yovinchen.xlcs.payment.service.impl;
import com.github.wxpay.sdk.WXPayUtil;
import com.yovinchen.xlcs.common.constant.RedisConst; import com.yovinchen.xlcs.common.constant.RedisConst;
import com.yovinchen.xlcs.model.order.PaymentInfo; import com.yovinchen.xlcs.model.order.PaymentInfo;
import com.yovinchen.xlcs.payment.service.PaymentInfoService; import com.yovinchen.xlcs.payment.service.PaymentInfoService;
@ -7,7 +8,6 @@ import com.yovinchen.xlcs.payment.service.WeixinService;
import com.yovinchen.xlcs.payment.utils.ConstantPropertiesUtils; import com.yovinchen.xlcs.payment.utils.ConstantPropertiesUtils;
import com.yovinchen.xlcs.payment.utils.HttpClient; import com.yovinchen.xlcs.payment.utils.HttpClient;
import com.yovinchen.xlcs.vo.user.UserLoginVo; import com.yovinchen.xlcs.vo.user.UserLoginVo;
import com.github.wxpay.sdk.WXPayUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -23,7 +23,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.payment.payment.service.impl * Package: com.yovinchen.xlcs.payment.payment.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:33 * @since 2023/10/13 10:33
*/ */
@Service @Service
public class WeXinServiceImpl implements WeixinService { public class WeXinServiceImpl implements WeixinService {

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
* Package: com.yovinchen.xlcs.payment.payment.utils * Package: com.yovinchen.xlcs.payment.payment.utils
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:48 * @since 2023/10/13 10:48
*/ */
@Component @Component
public class ConstantPropertiesUtils implements InitializingBean { public class ConstantPropertiesUtils implements InitializingBean {

View File

@ -33,7 +33,7 @@ import java.util.Map;
* Package: com.yovinchen.xlcs.payment.payment.utils * Package: com.yovinchen.xlcs.payment.payment.utils
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 10:47 * @since 2023/10/13 10:47
*/ */
public class HttpClient { public class HttpClient {

View File

@ -9,7 +9,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/15 09:47 * @since 2023/9/15 09:47
*/ */
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -17,7 +17,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.product.api * Package: com.yovinchen.xlcs.product.api
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 17:28 * @since 2023/9/16 17:28
*/ */
@RestController @RestController
@RequestMapping("api/product") @RequestMapping("api/product")

View File

@ -15,7 +15,7 @@ import org.springframework.web.multipart.MultipartFile;
* Package: com.yovinchen.xlcs.product.controller * Package: com.yovinchen.xlcs.product.controller
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/15 13:56 * @since 2023/9/15 13:56
*/ */
@Api(tags = "文件上传接口") @Api(tags = "文件上传接口")
@RestController @RestController

View File

@ -1,8 +1,8 @@
package com.yovinchen.xlcs.product.receiver; package com.yovinchen.xlcs.product.receiver;
import com.rabbitmq.client.Channel;
import com.yovinchen.xlcs.mq.constant.MqConst; import com.yovinchen.xlcs.mq.constant.MqConst;
import com.yovinchen.xlcs.product.service.SkuInfoService; import com.yovinchen.xlcs.product.service.SkuInfoService;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message; import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.Exchange; import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue; import org.springframework.amqp.rabbit.annotation.Queue;
@ -19,7 +19,7 @@ import java.io.IOException;
* Package: com.yovinchen.xlcs.product.receiver * Package: com.yovinchen.xlcs.product.receiver
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 15:05 * @since 2023/10/13 15:05
*/ */
@Component @Component
public class StockReceiver { public class StockReceiver {

View File

@ -7,7 +7,7 @@ import org.springframework.web.multipart.MultipartFile;
* Package: com.yovinchen.xlcs.product.service * Package: com.yovinchen.xlcs.product.service
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/15 13:57 * @since 2023/9/15 13:57
*/ */
public interface FileUploadService { public interface FileUploadService {
String fileUpload(MultipartFile file) throws Exception; String fileUpload(MultipartFile file) throws Exception;

View File

@ -16,7 +16,7 @@ import java.util.UUID;
* Package: com.yovinchen.xlcs.product.service.impl * Package: com.yovinchen.xlcs.product.service.impl
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/15 13:57 * @since 2023/9/15 13:57
*/ */
@Service @Service
public class FileUploadServiceImpl implements FileUploadService { public class FileUploadServiceImpl implements FileUploadService {

View File

@ -15,7 +15,7 @@ import java.security.NoSuchAlgorithmException;
* Package: com.yovinchen.xlcs.product.utils * Package: com.yovinchen.xlcs.product.utils
* *
* @author yovinchen * @author yovinchen
* @Create 2023/10/13 17:55 * @since 2023/10/13 17:55
*/ */
public class FileUploader { public class FileUploader {

View File

@ -11,7 +11,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
* Package: com.yovinchen.xlcs * Package: com.yovinchen.xlcs
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 17:20 * @since 2023/9/16 17:20
*/ */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
@EnableDiscoveryClient @EnableDiscoveryClient

View File

@ -5,7 +5,7 @@ package com.yovinchen.xlcs.search.api;
* Package: com.yovinchen.xlcs.search.api * Package: com.yovinchen.xlcs.search.api
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/26 14:21 * @since 2023/9/26 14:21
*/ */
public class SearchApiController { public class SearchApiController {
} }

View File

@ -22,7 +22,7 @@ import java.util.List;
* Package: com.yovinchen.xlcs.search.controller * Package: com.yovinchen.xlcs.search.controller
* *
* @author yovinchen * @author yovinchen
* @Create 2023/9/16 17:22 * @since 2023/9/16 17:22
*/ */
@RestController @RestController
@RequestMapping("api/search/sku") @RequestMapping("api/search/sku")

Some files were not shown because too many files have changed in this diff Show More