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

[소식] 페이지 API 연동 #20

Merged
merged 7 commits into from
Nov 7, 2022

Conversation

CheolheeLee0
Copy link
Contributor

Describe your changes

영상으로 확인하기

Video Label

  • 디자인 변경사항 적용

    • 상단 Logo
    • 상단 Home Button
    • bottom navigation bar svg icon, color
  • NoticeModel 필드 수정

    • nullable : boardNum, picUrl, period
    • API에 맞추어 필드 추가
  • 백마광장 게시판 연동 및 테스트 완료
    news('새소식', 'NEWS'),
    academicInformation('학사정보', 'ACADEMIC_INFO'),
    cnuNews('CNU뉴스', 'CNU_NEWS'),
    educationalInformation('교육정보', 'EDUCATION_INFO'),
    businessGroupStartupAndEducation('사업단 창업, 교육', 'BUSINESS_GROUP_STARTUP'),
    recruitmentAndInvitation('채용/초빙', 'RECRUIT_INVITATION'),
    univCultureField('대학문화마당', 'UNIV_CULTURE_FIELD'),
    cnuMarket('CNU장터', 'CNU_MARKET'),
    jobSearch('구인', 'JOB_SEARCH'),
    jobOffer('구직', 'JOB_OFFER'),
    studyCompetition('스터디 및 공모전', 'STUDY_COMPETITION'),

  • 국제교류본부 게시판 연동 및 테스트 완료
    studentRecruiting('Student Recruiting', 'STUDENT_RECRUIT'),
    event('Event', 'EVENT'),
    jobAndCareer('Job&Career', 'JOB_CAREER'),
    formAndData('Form&Data', 'FORM_DATA'),

Fixes #18

Checklist

  • 🤔 이 프로젝트의 스타일 가이드를 따르나요?
  • 🤔 머지하기 전에 스스로 코드에 문제가 없음을 확인했나요?
  • 🤔 필요한 주석을 필요한 곳에 넣어주었나요?

Next Step Todo (optional)

Questions

  • 💬 질문 사항이에요!
  • 🤷‍♂️ 확인 받고 싶은 부분이에요!
  • 🔥 이건 꼭 확인해주세요!

@CheolheeLee0 CheolheeLee0 added the enhancement New feature or request label Nov 5, 2022
@CheolheeLee0 CheolheeLee0 self-assigned this Nov 5, 2022
@CheolheeLee0 CheolheeLee0 linked an issue Nov 5, 2022 that may be closed by this pull request
6 tasks
@okinawaa okinawaa self-requested a review November 6, 2022 03:00
Copy link
Member

@okinawaa okinawaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

긴 작업 감사합니다!😄

@@ -0,0 +1 @@
flutter pub run build_runner build --delete-conflicting-outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어떤 목적의 파일인지 궁금합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

freezed 모델 수정이나 추가하고 새로 생성할 때, 명령어가 길어 까먹는 경우가 많아서 자주 쓰는 명령어이다보니 쉘스크립트로 추가해두면 어떨까 합니다!

// 쉘 스크립트 실행 방법
sh freezed.sh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

역시.. 너무좋네요 감사합니다 잘 이용하겠습니다 저도 명령어 외우기 은근어렵더라고요

Comment on lines +30 to +41
Future<List<dynamic>> getList(String url,
{dynamic param, bool? refresh}) async {
final response = await dio!.get(
url,
queryParameters: param,
options: refresh == true
? dioCacheOptions.copyWith(policy: CachePolicy.refresh).toOptions()
: null,
);
return response.data as List<dynamic>;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good🚀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다!

),
return InkWell(
onTap: () {
Get.back();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get.back() 을 사용하면 전 라우트로돌아가는것 아닌가요?
Get.toNamed("/") 이런식으로 home으로 돌아가는것은 명시하지 않아도되나요?

일단 실행시켜보니 교통에서 소식갔다가 버튼클릭해도 교통가는것이고 홈으로 돌아가서 요구사항대로 잘 작동은 하는 것 같습니다!!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 그렇네요! 네 명시적으로 수정했습니다~

Comment on lines +2 to +13
news('새소식', 'NEWS'),
academicInformation('학사정보', 'ACADEMIC_INFO'),
cnuNews('CNU뉴스', 'CNU_NEWS'),
educationalInformation('교육정보', 'EDUCATION_INFO'),
businessGroupStartupAndEducation('사업단 창업, 교육', 'BUSINESS_GROUP_STARTUP'),
recruitmentAndInvitation('채용/초빙', 'RECRUIT_INVITATION'),
univCultureField('대학문화마당', 'UNIV_CULTURE_FIELD'),
cnuMarket('CNU장터', 'CNU_MARKET'),
jobSearch('구인', 'JOB_SEARCH'),
jobOffer('구직', 'JOB_OFFER'),
studyCompetition('스터디 및 공모전', 'STUDY_COMPETITION'),
undefined('', '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

param 도 두번째 인자로 갖고 있는것 좋네요 !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

분기처리 안해도 필드 하나만 추가하면 되는 부분이 enum의 장점인 것 같습니다!

@CheolheeLee0
Copy link
Contributor Author

리뷰 수고 많으셨습니다! 감사합니다~

@okinawaa okinawaa merged commit 567ecea into cnu-bot:develop Nov 7, 2022
@CheolheeLee0 CheolheeLee0 changed the title feat: 소식 페이지 API 연동 [소식] 페이지 API 연동 Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[소식] 페이지 API 연동
2 participants