code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/08/CVE-2024-36939/TestCaseRule-CVE-2024-36939.yara
YARA
unknown
1,065
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/08/CVE-2024-36940/TestCaseRule-CVE-2024-36940.yara
YARA
unknown
1,057
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/08/CVE-2024-36941/TestCaseRule-CVE-2024-36941.yara
YARA
unknown
1,104
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/08/CVE-2024-4603/TestCaseRule-CVE-2024-4603.yara
YARA
unknown
955
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-25739/TestCaseRule-OpenHarmony-CVE-2024-25739.yara
YARA
unknown
1,013
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-26585/TestCaseRule-OpenHarmony-CVE-2024-26585.yara
YARA
unknown
1,140
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-36270/TestCaseRule-OpenHarmony-CVE-2024-36270.yara
YARA
unknown
1,094
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-38564/TestCaseRule-CVE-2024-38564.yara
YARA
unknown
1,030
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-38577/TestCaseRule-CVE-2024-38577.yara
YARA
unknown
1,028
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-38588/TestCaseRule-CVE-2024-38588.yara
YARA
unknown
1,020
/*     * Copyright (c) 2024 Beijing University of Posts and Telecommunications.   *     * Licensed under the Apache License, Version 2.0 (the "License");     * you may not use this file except in compliance with the License.     * You may obtain a copy of the License at     *     * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-38601/TestCaseRule-OpenHarmony-CVE-2024-38601.yara
YARA
unknown
1,083
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/CVE-2024-5535/TestCaseRule-CVE-2024-5535.yara
YARA
unknown
1,038
/* *Copyright (c) 2024 Beijing University of Posts and Telecommunications. *Licensed under the Apache License, Version 2.0 (the "License"); *you may not use this file except in compliance with the License. *You may obtain a copy of the License at *http://www.apache.org/licenses/LICENSE-2.0 *Unless require...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/09/OpenHarmony-CVE-2024-39467/TestCaseRule-OpenHarmony-CVE-2024-39467.yara
YARA
unknown
1,184
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2023-52672/TestCaseRule-CVE-2023-52672.yara
YARA
unknown
1,029
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2024-35947/TestCaseRule-OpenHarmony-CVE-2024-35947.yara
YARA
unknown
1,003
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2024-40971/CVE-2024-40971.yara
YARA
unknown
984
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2024-41035/TestCaseRule-CVE-2024-41035.yara
YARA
unknown
1,068
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2024-41087/TestcaseRule-OpenHarmony-CVE-2024-41087.yara
YARA
unknown
1,057
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE-2024-42236/TestcaseRule-CVE-2024-42236.yara
YARA
unknown
1,305
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/CVE_2024_42115/TestCaseRule-CVE-2024-42115.yara
YARA
unknown
1,087
/* *Copyright (c) 2024 Beijing University of Posts and Telecommunications. *Licensed under the Apache License, Version 2.0 (the "License"); *you may not use this file except in compliance with the License. *You may obtain a copy of the License at *http://www.apache.org/licenses/LICENSE-2.0 *Unless require...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/10/OpenHarmony-CVE-2024-42114/TestCaseRule-OpenHarmony-CVE-2024-42114.yara
YARA
unknown
1,113
/* * Copyright (c) 2024 Beijing University of Posts and Telecommunications. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
2301_80000730/security_2000
vulntest/SSTSTestcases/2024/12/CVE-2024-26684/TestCaseRule-OpenHarmony-CVE-2024-26684.yara
YARA
unknown
1,016
/* * Copyright (c) 2025 Beijing University Of Posts and Telecommunications. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
2301_80000730/security_2000
vulntest/SSTSTestcases/2025/01/CVE-2025-21817/CVE-2025-21817.yara
YARA
unknown
1,513
import { hapTasks } from '@ohos/hvigor-ohos-plugin'; export default { system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ }
2301_80000730/security_2000
vulntest/vultraining/entry/hvigorfile.ts
TypeScript
unknown
234
import { appTasks } from '@ohos/hvigor-ohos-plugin'; export default { system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ }
2301_80000730/security_2000
vulntest/vultraining/hvigorfile.ts
TypeScript
unknown
234
# Build pg_trace_tool, need pg_config support EXTENSION = pg_trace_tool EXTVERSION = 1.0 DATA = pg_trace_tool--1.0.sql MODULE_big = pg_trace_tool OBJS = pg_trace_tool.o # PGXS USE_PGXS = 1 PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS)
2301_80257615/pg_trace_tool
makefile
Makefile
unknown
268
/* * pg_trace_tool.c * * A trace tool for OpenTenBase that can be used to track and analyze the execution of Functions and Procedures. * Supported features: * 1. Track and analyze Function and Procedure execution * 2. Generate execution reports for Functions and Procedures * * Author: CDUESTC Open Atom Open Sou...
2301_80257615/pg_trace_tool
pg_trace_tool.c
C
unknown
16,511
/* * pg_trace_tool.h * * A trace tool for OpenTenBase that can be used to track and analyze the execution of Functions and Procedures. * * Author: CDUESTC Open Atom Open Source Club * Version: 1.0 */
2301_80257615/pg_trace_tool
pg_trace_tool.h
C
unknown
208
package com.jxau.mall.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; /** * @BelongsProject: shop * @Belongspackage: com.jxau.mall.demo.controller *...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/DemoApplication.java
Java
unknown
760
package com.jxau.mall.demo.config; import com.jxau.mall.demo.entity.Dog; import com.jxau.mall.demo.entity.Person; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * @BelongsProject: shop * @Belongspackage: com.jxau.mall.demo.config * @Au...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/config/ContainerConfig.java
Java
unknown
808
package com.jxau.mall.demo.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @BelongsProject: shop * @Belongspackage: com.jxau.mall.demo.controller * @Author: guojiani * @CreateTime: 2025-03-20 20:54 * @Descriptio...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/controller/GoodByController.java
Java
unknown
502
package com.jxau.mall.demo.controller; import com.jxau.mall.common.enums.ResponseEnum; import com.jxau.mall.common.util.ResponseVO; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @BelongsProject: shop * @Belongspackage: com.jx...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/controller/HelloController.java
Java
unknown
818
package com.jxau.mall.demo.controller; import com.jxau.mall.demo.entity.Person; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @BelongsProject: shop * @Belongspack...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/controller/PersonController.java
Java
unknown
987
package com.jxau.mall.demo.entity; import lombok.Data; import lombok.ToString; import java.util.List; /** * @BelongsProject: shop * @Belongspackage: com.jxau.mall.demo.entity * @Author: guojiani * @CreateTime: 2025-03-29 20:06 * @Description: TODO * @Version: 1.0 */ @Data @ToString public cla...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/entity/Children.java
Java
unknown
438
package com.jxau.mall.demo.entity; import lombok.Data; import lombok.ToString; import org.springframework.stereotype.Component; /** * @BelongsProject: shop * @Belongspackage: com.jxau.mall.demo.entity * @Author: guojiani * @CreateTime: 2025-03-29 20:05 * @Description: TODO * @Version: 1.0 */ @Dat...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/entity/Dog.java
Java
unknown
437
package com.jxau.mall.demo.entity; import com.jxau.mall.demo.entity.Children; import com.jxau.mall.demo.entity.Dog; import lombok.Data; import lombok.ToString; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import java.util.Date; ...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/entity/Person.java
Java
unknown
1,000
package com.jxau.mall.demo.service; import com.jxau.mall.proto.Cart; import java.util.List; /** * @program: shop * @description: 客户端配置 * @author: guojiani * @create: 2025-04-27 15:45 **/ public interface IGrpcClientService { void save(List<Cart> carts) throws Exception; }
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/service/IGrpcClientService.java
Java
unknown
310
package com.jxau.mall.demo.service.Impl; import com.jxau.mall.demo.service.IGrpcClientService; import com.jxau.mall.proto.Cart; import com.jxau.mall.proto.RequestParam; import com.jxau.mall.proto.ResponseResult; import com.jxau.mall.proto.RpcSimpleGrpc; import net.devh.boot.grpc.client.inject.GrpcClient; impor...
2301_80339408/shop2-backend
shop/shop/demo/src/main/java/com/jxau/mall/demo/service/Impl/GrpcClientServiceImpl.java
Java
unknown
1,129
package com.jxau.mall; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; /** * @program: shop * @description:项目启动类 * @author: guojiani * @create: 2025-04-...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/MallCartApplication.java
Java
unknown
573
package com.jxau.mall.cart.controller; import com.jxau.mall.cart.entity.Cart; import com.jxau.mall.cart.service.ICartService; import com.jxau.mall.common.util.ResponseVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.time.LocalDate...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/controller/CartController.java
Java
unknown
1,533
package com.jxau.mall.cart.entity; import lombok.Data; import java.time.LocalDateTime; /** * @program: shop * @description: 购物车实体类 * @author: guojiani * @create: 2025-04-26 15:39 **/ @Data public class Cart { private String _id; // 编号 private String userId; // 用户ID private String n...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/entity/Cart.java
Java
unknown
570
package com.jxau.mall.cart.mapper; import com.jxau.mall.cart.entity.Cart; import org.springframework.data.mongodb.repository.MongoRepository; /** * @program: shop * @description: 购物车接口 * @author: guojiani * @create: 2025-04-26 15:45 **/ public interface CartMapper extends MongoRepository <Cart,String>...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/mapper/CartMapper.java
Java
unknown
336
package com.jxau.mall.cart.service; import com.jxau.mall.cart.entity.Cart; import java.util.List; /** * @program: shop * @description: 购物车业务层接口 * @author: guojiani * @create: 2025-04-26 15:57 **/ public interface ICartService { /** * 加入购物车 * @param cart */ void add(Cart c...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/service/ICartService.java
Java
unknown
678
package com.jxau.mall.cart.service.impl; import com.jxau.mall.cart.entity.Cart; import com.jxau.mall.cart.mapper.CartMapper; import com.jxau.mall.cart.service.ICartService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Example; import org.springframework.d...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/service/impl/CartServiceImpl.java
Java
unknown
1,538
package com.jxau.mall.cart.service.impl; import com.jxau.mall.cart.service.ICartService; import com.jxau.mall.proto.Cart; import com.jxau.mall.proto.RequestParam; import com.jxau.mall.proto.ResponseResult; import com.jxau.mall.proto.RpcSimpleGrpc; import io.grpc.stub.StreamObserver; import net.devh.boot.grpc.s...
2301_80339408/shop2-backend
shop/shop/mall-cart/src/main/java/com/jxau/mall/cart/service/impl/GrpcCartServiceImpl.java
Java
unknown
1,408
package com.jxau.mall.generator; import com.baomidou.mybatisplus.generator.FastAutoGenerator; /** * @program: shop * @description: 代码生成器 * @author: guojiani * @create: 2025-04-10 19:45 **/ public class CodeGenerator { public static void main(String[] args) { // 使用 FastAutoGenerator 快速配置...
2301_80339408/shop2-backend
shop/shop/mall-code-generator/src/main/java/com/jxau/mall/generator/CodeGenerator.java
Java
unknown
2,349
package com.jxau.mall.common.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * @program: shop * @description: 允许跨域访问的类 * @author: guoji...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/config/CorsConfig.java
Java
unknown
877
package com.jxau.mall.common.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; im...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/config/MyBatisPlusConfig.java
Java
unknown
2,421
package com.jxau.mall.common.config; import com.jxau.mall.common.interceptor.AuthorizationInterceptor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigure...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/config/WebConfig.java
Java
unknown
928
package com.jxau.mall.common.enums; import lombok.Getter; /** * 枚举类型类,提前声明状态码 */ @Getter public enum ResponseEnum { /* 成功状态码 */ SUCCESS(2000, "操作成功"), /* 错误状态码 */ FAIL(1000, "操作失败"), /* 参数错误:1001-1999 */ PARAM_IS_INVALID(1001, "参数无效"), PARAM...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/enums/ResponseEnum.java
Java
unknown
1,258
package com.jxau.mall.common.interceptor; import com.fasterxml.jackson.databind.ObjectMapper; import com.jxau.mall.common.enums.ResponseEnum; import com.jxau.mall.common.util.JwtUtils; import com.jxau.mall.common.util.ResponseVO; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpSe...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/interceptor/AuthorizationInterceptor.java
Java
unknown
1,862
package com.jxau.mall.common.util; import com.baomidou.mybatisplus.core.toolkit.AES; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import org.apache.ibatis.type.BaseTypeHandler; import org.apache.ibatis.type.JdbcType; import java.sql.CallableStatement; import java.sql.PreparedStatement; import ...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/util/EncryptHandler.java
Java
unknown
2,196
package com.jxau.mall.common.util; /** * @program: shop * @description: 通用加密工具类 * @author: guojiani * @create: 2025-04-24 21:50 **/ public class EncryptUtils { /** * 手机脱敏 * * @param text 明文 * @return 密文 */ public static String hidePhone(String text) { // ...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/util/EncryptUtils.java
Java
unknown
729
package com.jxau.mall.common.util; import com.jxau.mall.common.enums.ResponseEnum; import lombok.extern.slf4j.Slf4j; import org.springframework.web.HttpMediaTypeNotSupportedException; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdv...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/util/GlobleExceptionHandler.java
Java
unknown
1,293
package com.jxau.mall.common.util; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * @program: shop * @description: 登录身份验证工具类 * @author: guojiani * @create: 2025-04-24 2...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/util/JwtUtils.java
Java
unknown
2,079
package com.jxau.mall.common.util; import com.fasterxml.jackson.annotation.JsonInclude; import com.jxau.mall.common.enums.ResponseEnum; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * @program: shop * @description: 视图对象,封装response类,用于统一返回结果,有的也叫DTO * @author: guoj...
2301_80339408/shop2-backend
shop/shop/mall-common/src/main/java/com/jxau/mall/common/util/ResponseVO.java
Java
unknown
2,721
package com.jxau.mall; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @program: shop * @description: 该项目的启动类,也叫主程序 * @author: guojiani * @create: 2025-04-10 22:39 **/ @Sprin...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/MallGoodsApplication.java
Java
unknown
580
package com.jxau.mall.goods.controller; import com.jxau.mall.common.util.ResponseVO; import com.jxau.mall.goods.entity.Brand; import com.jxau.mall.goods.service.IBrandService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.spr...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/controller/BrandController.java
Java
unknown
2,092
package com.jxau.mall.goods.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * <p> * 前端控制器 * </p> * * @author guojiani * @since 2025-04-10 */ @RestController @RequestMapping("/categoryBrand") public cla...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/controller/CategoryBrandController.java
Java
unknown
365
package com.jxau.mall.goods.controller; import com.jxau.mall.common.util.ResponseVO; import com.jxau.mall.goods.model.CategoryDTO; import com.jxau.mall.goods.service.ICategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/controller/CategoryController.java
Java
unknown
954
package com.jxau.mall.goods.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.jxau.mall.common.util.ResponseVO; import com.jxau.mall.goods.model.Product; import com.jxau.mall.goods.service.IProductService; import org.springframework.beans.factory.annotation.Autowired; import org.spring...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/controller/ProductController.java
Java
unknown
938
package com.jxau.mall.goods.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * <p> * 商品表 前端控制器 * </p> * * @author guojiani * @since 2025-04-10 */ @RestController @RequestMapping("/skuInfo") public class ...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/controller/SkuInfoController.java
Java
unknown
362
package com.jxau.mall.goods.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import lombok.Getter; import lombo...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/entity/Brand.java
Java
unknown
1,186
package com.jxau.mall.goods.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import lombok.Getter; import lombo...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/entity/Category.java
Java
unknown
912
package com.jxau.mall.goods.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * <p> * ...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/entity/CategoryBrand.java
Java
unknown
839
package com.jxau.mall.goods.entity; import com.baomidou.mybatisplus.annotation.*; import java.io.Serializable; import java.time.LocalDateTime; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * <p> * 商品表 * </p> * * @author guojiani * @since 2025-04-10 */ @Getter @Sett...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/entity/SkuInfo.java
Java
unknown
2,373
package com.jxau.mall.goods.mapper; import com.jxau.mall.goods.entity.Brand; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * <p> * 品牌表 Mapper 接口 * </p> * * @author guojiani * @since 2025-04-10 */ @Mapper public ...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/mapper/BrandMapper.java
Java
unknown
809
package com.jxau.mall.goods.mapper; import com.jxau.mall.goods.entity.CategoryBrand; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author guojiani * @since 2025-04-10 */ public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> { }
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/mapper/CategoryBrandMapper.java
Java
unknown
320
package com.jxau.mall.goods.mapper; import com.jxau.mall.goods.entity.Category; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 商品类目 Mapper 接口 * </p> * * @author guojiani * @since 2025-04-10 */ public interface CategoryMapper extends BaseMapper<Category> { }
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/mapper/CategoryMapper.java
Java
unknown
317
package com.jxau.mall.goods.mapper; import com.jxau.mall.goods.entity.SkuInfo; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 商品表 Mapper 接口 * </p> * * @author guojiani * @since 2025-04-10 */ public interface SkuInfoMapper extends BaseMapper<SkuInfo> { }
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/mapper/SkuInfoMapper.java
Java
unknown
311
package com.jxau.mall.goods.model; import com.jxau.mall.goods.entity.Category; import lombok.Data; import java.io.Serializable; import java.util.List; /** * @program: shop * @description: 业务类,用来封装业务层的数据 * @author: guojiani * @create: 2025-04-15 11:08 **/ @Data public class CategoryDTO extends Cat...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/model/CategoryDTO.java
Java
unknown
615
package com.jxau.mall.goods.model; import com.jxau.mall.goods.entity.SkuInfo; import lombok.Data; /** * @program: shop * @description: 封装实现商品展示的类 * @author: guojiani * @create: 2025-04-19 21:27 **/ @Data public class Product extends SkuInfo { private Integer oneCategoryId; // 一级分类 ID privat...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/model/Product.java
Java
unknown
482
package com.jxau.mall.goods.model; import lombok.Data; /** * @program: shop * @description: 商品模块实现库存修改 * @author: guojiani * @create: 2025-04-27 15:16 **/ @Data public class Stock { private Long skuId; // 库存Id private Integer num; // 数量 }
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/model/Stock.java
Java
unknown
295
package com.jxau.mall.goods.service; import com.jxau.mall.goods.entity.Brand; import com.baomidou.mybatisplus.extension.service.IService; import java.util.List; /** * <p> * 品牌表 服务类 * </p> * * @author guojiani * @since 2025-04-10 */ public interface IBrandService extends IService<Brand> { /...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/IBrandService.java
Java
unknown
724
package com.jxau.mall.goods.service; import com.jxau.mall.goods.entity.CategoryBrand; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 服务类 * </p> * * @author guojiani * @since 2025-04-10 */ public interface ICategoryBrandService extends IService<CategoryBrand> { }
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/ICategoryBrandService.java
Java
unknown
321
package com.jxau.mall.goods.service; import com.jxau.mall.goods.entity.Category; import com.baomidou.mybatisplus.extension.service.IService; import com.jxau.mall.goods.model.CategoryDTO; import java.util.List; /** * <p> * 商品类目 服务类 * </p> * * @author guojiani * @since 2025-04-10 */ public inter...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/ICategoryService.java
Java
unknown
471
package com.jxau.mall.goods.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.jxau.mall.goods.model.Product; /** * @program: shop * @description: 实现商品展示方法的接口 * @author: guojiani * @create: 2025-04-20 21:34 **/ public interface IProductService { /** * 查询商品 * @par...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/IProductService.java
Java
unknown
424
package com.jxau.mall.goods.service; import com.jxau.mall.goods.entity.SkuInfo; import com.baomidou.mybatisplus.extension.service.IService; import com.jxau.mall.goods.model.Stock; import java.util.List; /** * <p> * 商品表 服务类 * </p> * * @author guojiani * @since 2025-04-10 */ public interface ISk...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/ISkuInfoService.java
Java
unknown
519
package com.jxau.mall.goods.service.impl; import com.jxau.mall.goods.entity.Brand; import com.jxau.mall.goods.mapper.BrandMapper; import com.jxau.mall.goods.service.IBrandService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import java.u...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/BrandServiceImpl.java
Java
unknown
950
package com.jxau.mall.goods.service.impl; import com.jxau.mall.goods.entity.CategoryBrand; import com.jxau.mall.goods.mapper.CategoryBrandMapper; import com.jxau.mall.goods.service.ICategoryBrandService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Ser...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/CategoryBrandServiceImpl.java
Java
unknown
569
package com.jxau.mall.goods.service.impl; import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.jxau.mall.goods.entity.Category; import com.jxau.mall.goods.mapper.CategoryMapper; import com.jxau.mall.goods.model.CategoryDTO; import com.j...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/CategoryServiceImpl.java
Java
unknown
2,980
package com.jxau.mall.goods.service.impl; import com.alibaba.fastjson.JSON; import com.jxau.mall.goods.model.Stock; import com.jxau.mall.goods.service.ISkuInfoService; import com.jxau.mall.proto.Cart; import com.jxau.mall.proto.RequestParam; import com.jxau.mall.proto.ResponseResult; import com.jxau.mall.p...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/GrpcSkuInfoServiceImpl.java
Java
unknown
2,018
package com.jxau.mall.goods.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.jxau.mall.goods.entity.Category; import com.jxau.mall.go...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/ProductServiceImpl.java
Java
unknown
4,836
package com.jxau.mall.goods.service.impl; import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; import com.jxau.mall.goods.entity.SkuInfo; import com.jxau.mall.goods.mapper.SkuInfoMapper; import com.jxau.mall.goods.model.Stock; import com.jxau.mall.goods.service.ISkuInfoService; ...
2301_80339408/shop2-backend
shop/shop/mall-goods/src/main/java/com/jxau/mall/goods/service/impl/SkuInfoServiceImpl.java
Java
unknown
2,075
package com.jxau.mall; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @MapperScan(basePackages = {"com.jxau.mall.order.mapper"}) public class MallOrderApplication { ...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/MallOrderApplication.java
Java
unknown
439
package com.jxau.mall.order.controller; import com.jxau.mall.common.util.ResponseVO; import com.jxau.mall.order.model.OrderVO; import com.jxau.mall.order.service.IOrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.s...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/controller/OrderController.java
Java
unknown
923
package com.jxau.mall.order.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * <p> * 订单中所包含的商品 前端控制器 * </p> * * @author guojiani * @since 2025-04-28 */ @RestController @RequestMapping("/orderDetail") pub...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/controller/OrderDetailController.java
Java
unknown
388
package com.jxau.mall.order.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.math.BigDecimal; impor...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/entity/OrderDetail.java
Java
unknown
1,380
package com.jxau.mall.order.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; import lombok.Getter; i...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/entity/OrderInfo.java
Java
unknown
2,672
package com.jxau.mall.order.mapper; import com.jxau.mall.order.entity.OrderDetail; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 订单中所包含的商品 Mapper 接口 * </p> * * @author guojiani * @since 2025-04-28 */ public interface OrderDetailMapper extends BaseMapper<OrderDetail> { }
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/mapper/OrderDetailMapper.java
Java
unknown
341
package com.jxau.mall.order.mapper; import com.jxau.mall.order.entity.OrderInfo; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * 订单表 Mapper 接口 * </p> * * @author guojiani * @since 2025-04-28 */ public interface OrderInfoMapper extends BaseMapper<OrderInfo> { }
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/mapper/OrderInfoMapper.java
Java
unknown
317
package com.jxau.mall.order.model; /** * @program: shop * @description: 封装前端传递过来的订单数据 * @author: guojiani * @create: 2025-04-28 19:32 **/ import com.jxau.mall.order.entity.OrderDetail; import com.jxau.mall.order.entity.OrderInfo; import lombok.Data; import java.io.Serializable; import java.util.Li...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/model/OrderVO.java
Java
unknown
597
package com.jxau.mall.order.service; import com.jxau.mall.order.entity.OrderDetail; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 订单中所包含的商品 服务类 * </p> * * @author guojiani * @since 2025-04-28 */ public interface IOrderDetailService extends IService<OrderDetail> { }
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/IOrderDetailService.java
Java
unknown
342
package com.jxau.mall.order.service; import com.baomidou.mybatisplus.extension.service.IService; import com.jxau.mall.order.entity.OrderDetail; import com.jxau.mall.order.entity.OrderInfo; /** * @program: shop * * @description: * * @author: guojiani * * @create: 2025-04-29 12:25 **/ public interface I...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/IOrderInfoService.java
Java
unknown
371
package com.jxau.mall.order.service; import com.jxau.mall.order.entity.OrderInfo; import com.baomidou.mybatisplus.extension.service.IService; import com.jxau.mall.order.model.OrderVO; /** * <p> * 订单表 服务类 * </p> * * @author guojiani * @since 2025-04-28 */ public interface IOrderService { /** ...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/IOrderService.java
Java
unknown
465
package com.jxau.mall.order.service.impl; import com.jxau.mall.order.entity.OrderDetail; import com.jxau.mall.order.mapper.OrderDetailMapper; import com.jxau.mall.order.service.IOrderDetailService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; ...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/impl/OrderDetailServiceImpl.java
Java
unknown
582
package com.jxau.mall.order.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jxau.mall.order.entity.OrderDetail; import com.jxau.mall.order.entity.OrderInfo; import com.jxau.mall.order.mapper.OrderDetailMapper; import com.jxau.mall.order.mapper.OrderInfoMapper; impo...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/impl/OrderInfoServiceImpl.java
Java
unknown
552
package com.jxau.mall.order.service.impl; import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.jxau.mall.order.entity.OrderDetail; import com.jxau.mall.order.entity.OrderInfo; import com.jxau.mall.order.model.OrderVO; import com.jxau.mall.order.service.IOrderDetail...
2301_80339408/shop2-backend
shop/shop/mall-order/src/main/java/com/jxau/mall/order/service/impl/OrderServiceImpl.java
Java
unknown
3,593
package com.jxau.mall; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; /** * @BelongsProject: shop * @Belongspackage: com.jxa...
2301_80339408/shop2-backend
shop/shop/mall-user/src/main/java/com/jxau/mall/MallUserApplication.java
Java
unknown
901
package com.jxau.mall.user.controller; import com.jxau.mall.common.util.ResponseVO; import com.jxau.mall.user.entity.UserInfo; import com.jxau.mall.user.service.IUserService; import org.mindrot.jbcrypt.BCrypt; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.ann...
2301_80339408/shop2-backend
shop/shop/mall-user/src/main/java/com/jxau/mall/user/controller/UserInfoController.java
Java
unknown
1,130