Skip to content

[MAIN] Semantic Status Code 운영을 위한 파라미터 클래스 생성 #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
merge-simpson opened this issue Apr 23, 2025 · 1 comment · May be fixed by #65
Open
2 tasks

[MAIN] Semantic Status Code 운영을 위한 파라미터 클래스 생성 #55

merge-simpson opened this issue Apr 23, 2025 · 1 comment · May be fixed by #65
Assignees
Labels
in: common Issues in the common module type: feature 새로운 기능 또는 기능적 개선 A new feature or enhancement

Comments

@merge-simpson
Copy link
Member

merge-simpson commented Apr 23, 2025

이슈 내용

  • 의미를 담은 Status Code 운영을 위한 파라미터 클래스를 생성합니다.
    • 반환 메서드: 기본 포맷을 유지할 때 최종 비트 구성을 담은 int 또는 long value 반환

부연 설명

See Details (Click)

오픈그래프 이미지. 엔티티 스테이터스 코드 유스케이스.

https://nettee.notion.site/2025-type-safe-builder

Sign Bit General Purpose Bits System Info Bits Category Bits Instance Detail Bits
1 (ø) 7 8 8 8
  • 32 Bit 포맷으로 생성합니다.
    • 부호 비트 생략 (항상 0으로 유지)
    • 이후 7비트: 일반적인 목적에서 어떤 동작의 허용 상태인지
    • 이후 8비트: 시스템 정보 비트 (초기에는 0으로 운영)
    • 이후 8비트: 일반적인 분류 비트 (대부분 이걸로 구분)
    • 마지막 8비트: 상세 분류 비트
      예를 들어 다음 세 상태는 category bits는 동일하게 하고 instance detail bit를 구분할 수 있음:
      • REMOVED
        일반적인 삭제 (주로 사용자 상호작용)
      • REMOVED_BY_SYSTEM
        시스템에 의한 삭제 (상태로 관리할 때 예시이며, 굳이 상태로 안 나누고 로그로만 확인할 수도 있음.)
      • REMOVED_BY_STAFF
        직원 상호작용에 의한 삭제 (운영자) (상태로 관리할 때 예시이며, 굳이 상태로 안 나누고 로그로만 확인할 수도 있음.)
  • JPA 의존성 제외
  • General Purpose Bits 구간의 General Purpose Features 기본 제공 목록
    • Item Read: 0b100_0000
    • Item Command: 0b010_0000
    • (undetermined bit): 0b001_0000
    • Sub-Item Read: 0b000_1000
    • Sub-Item Command: 0b000_0100
    • (undetermined bit): 0b000_0010
    • (undetermined bit): 0b000_0001
@merge-simpson merge-simpson added in: common Issues in the common module type: feature 새로운 기능 또는 기능적 개선 A new feature or enhancement status: req-assign 작업하기로 결정되었으나, 작업자 할당이 필요함. Issues that have been decided to accept but are not assigned labels Apr 23, 2025
@merge-simpson merge-simpson self-assigned this Apr 29, 2025
@merge-simpson merge-simpson removed the status: req-assign 작업하기로 결정되었으나, 작업자 할당이 필요함. Issues that have been decided to accept but are not assigned label Apr 29, 2025
@merge-simpson
Copy link
Member Author

제가 할게용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: common Issues in the common module type: feature 새로운 기능 또는 기능적 개선 A new feature or enhancement
Projects
None yet
1 participant