Skip to content
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

Feature: 기존 회원 정책 조회 및 체크 API 구현 #60

Merged
merged 7 commits into from
Jul 17, 2024

Conversation

Youthhing
Copy link
Member

연관된 이슈

이슈링크(url): #59

✅ 작업 내용

  • 동의하지 않은 정책 목록 조회
  • 정책 동의 API

🗣 ️리뷰 요구 사항

  • InQuery를 통한 조회 성능 향상
  • 새로운 테이블

DDL

Policy DDL

-- auto-generated definition
create table policy
(
    policy_id      bigint auto_increment
        primary key,
    created_at     datetime(6)                      null,
    modified_at    datetime(6)                      null,
    policy_content text                             not null,
    policy_type    varchar(255) default 'ESSENTIAL' not null,
    policy_title   varchar(255)                     not null
);

MemberPolicy DDL

-- auto-generated definition
create table member_policy
(
    member_policy_id bigint auto_increment
        primary key,
    created_at       datetime(6) null,
    modified_at      datetime(6) null,
    check_time       datetime(6) not null,
    is_checked       bit         not null,
    member_id        bigint      null,
    policy_id        bigint      null,
    constraint FK3etcb32jwrkvq19dpi5u5yj07
        foreign key (member_id) references member (member_id),
    constraint FK5o0wtosyy0vwdupgm012bp5ty
        foreign key (policy_id) references policy (policy_id)
);

정책 삽입 SQL

INSERT INTO policy (created_at, modified_at, policy_content, policy_type, policy_title)
VALUES (NOW(), NOW(), '개인정보보호법에 따라 코테이토에 회원가입을 신청하시는 분께 수집하는 개인정보의 항목, 개인정보의 수집 및 이용목적, 개인정보의 보유 및 이용기간, 동의 거부권 및 동의 거부 시 불이익에 관한 사항을 안내 드리니 확인 후 동의하여 주시기 바랍니다.\n\n회원 가입을 위해서는 아래와 같이 개인정보를 수집·이용합니다\n\n1. 개인정보 수집 항목: 이름, 아이디(이메일), 비밀번호, 전화번호\n2. 개인정보 수집 목적: 회원관리\n3. 보유 및 이용기간: 회원 탈퇴시까지\n\n이용자는 개인정보의 수집 및 이용 동의를 거부할 권리가 있으나 동의 거부 시 서비스 이용이 제한됩니다.', 'ESSENTIAL', '개인정보 수집·이용 동의');

INSERT INTO policy (created_at, modified_at, policy_content, policy_type, policy_title)
VALUES (NOW(), NOW(), '코테이토 페이지에서 서비스 제공을 위해 이용자의 현재 위치 정보를 수집합니다. 이에 따라 위치기반서비스와 관련하여 정보 수집 동의에 관한 사항을 안내드리니 확인 후 동의하여 주시기 바랍니다.\n\n1. 수집 정보\n: 현재 GPS 위치 정보\n2. 개인위치정보 수집 목적\n: 출석 확인\n3. 개인위치정보 사용 방법\n: 출석 체크 시에만 사용되며, 다른 목적으로 사용되지 않습니다.\n**출석 확인 후 정보가 저장되지 않으며, 즉시 삭제 됩니다.**\n\n이용자는 언제든지 개인 위치 정보 수집 동의를 철회할 수 있으며, 이 경우 서비스 이용에 일부 제한이 있을 수 있습니다.', 'ESSENTIAL', '위치기반 서비스 이용 동의');

@Youthhing Youthhing self-assigned this Jul 11, 2024
@Youthhing Youthhing requested a review from gikhoon July 11, 2024 08:41
@gikhoon
Copy link
Member

gikhoon commented Jul 11, 2024

@Youthhing 리뷰 남겼습니다!

@Youthhing Youthhing merged commit a9f0adf into develop Jul 17, 2024
1 check passed
@Youthhing Youthhing deleted the feature/#PC-57-member-policy branch July 17, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants