Logo

GitLab

Sign in

朱子纯 / test3

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • Snippets
  • Commits 42
  • Compare
  • Branches 4
  • Tags 0
  • test3
  • backend
  • src
  • main
  • java
  • com
08 May, 2026
6 commits
  • feat(usr): SecurityConfig + JwtFilter + AuthController REQ-USR-004 ...
    ae7e90e0
    - SecurityConfig: STATELESS, permitAll /api/auth/**, JWT filter
    - JwtAuthenticationFilter: Bearer token → SecurityContext
    - AuthController: POST /login, POST /refresh, GET /brands
    - BrandVO: @JsonProperty to fix Jackson serialization of sNo/sName
    - AuthControllerTest: 4/4 PASS; all 22 backend tests GREEN
    zichun authored
    2026-05-08 09:57:55 +0800  
    Browse Code »
  • feat(usr): AuthService login/refresh/getBrands + BizException + BeanConfig REQ-USR-004 ...
    79a8340d
    - LoginReqDTO/RefreshTokenReqDTO/LoginVO/BrandVO DTO/VO
    - AuthService interface: login/refresh/getBrands
    - AuthServiceImpl: multi-tenant brand query, BCrypt, disabled/lock check,
      fail count (5x → lock 30min), success reset; refresh token validate + re-issue;
      getBrands ORDER BY sName
    - UpdateWrapper (string columns) avoids LambdaWrapper unit test issue
    - BeanConfig: @Bean BCryptPasswordEncoder
    - AuthServiceTest: 10/10 PASS (7 login + 3 refresh/brands)
    zichun authored
    2026-05-08 09:54:34 +0800  
    Browse Code »
  • feat(usr): BrandEntity/UsrUserEntity + Mapper + MyBatisPlusConfig REQ-USR-004 ...
    dd310300
    - BrandEntity/UsrUserEntity: @TableName + @TableField (map-underscore-to-camel-case=false)
    - BrandMapper/UsrUserMapper: extends BaseMapper
    - MyBatisPlusConfig: @MapperScan + PaginationInnerInterceptor
    - BrandMapperTest: insert/query/delete against test DB PASS
    zichun authored
    2026-05-08 09:50:22 +0800  
    Browse Code »
  • feat(usr): JwtUtil generate + parse access/refresh token REQ-USR-004 ...
    7fbd1447
    - JwtProperties: @ConfigurationProperties("jwt") with secret/expiry
    - JwtUtil: generateAccessToken/generateRefreshToken/parseAccessToken/parseRefreshToken
    - parseRefreshToken validates type=refresh claim, throws 40103 if mismatch
    - JwtUtilTest: 3 tests PASS
    zichun authored
    2026-05-08 09:48:56 +0800  
    Browse Code »
  • feat(usr): common Result/BizException/AuthErrorCode/GlobalExceptionHandler REQ-USR-004 ...
    75fa00a6
    - Result<T>: ok()/fail() with code/message/data/timestamp
    - BizException: carries int code
    - AuthErrorCode: 40100/40101/40102/40103 constants
    - GlobalExceptionHandler: BizException, validation, fallback 99000
    zichun authored
    2026-05-08 09:47:15 +0800  
    Browse Code »
  • chore(backend): init Spring Boot 3 project skeleton REQ-USR-004 ...
    199a3381
    - pom.xml: Spring Boot 3.3.5, MyBatis-Plus 3.5.7, JJWT 0.12.6, Flyway 10.x
    - application.yml: DB/JWT from env vars, Flyway baseline-on-migrate=true
    - V1 migration copied to classpath:db/migration
    - ApplicationContextTest: @SpringBootTest context loads + Flyway baseline OK
    zichun authored
    2026-05-08 09:46:15 +0800  
    Browse Code »