Giter Club home page Giter Club logo

covid-auto_selfcheck's Introduction

COVID Auto_Check

NPM info

이 라이브러리는 11월을 마지막으로 더 이상 업데이트 되지 않을 예정입니다.

코로나19 자가진단을 이상없음으로 처리해주는 라이브러리입니다.

개인 학습용으로 만들어졌습니다.

사용법

const SelfTest = require('covid_selfcheck');

SelfTest('학생이름', '생년월일', '소속 시', '학교이름', '학교 유형(초중고)').then(result => {
    console.log(result); // 결과값
});
const SelfTest = require('covid_selfcheck');

SelfTest('학생이름', '생년월일', '학교 코드').then(result => {
    console.log(result); // 결과값
});

학교 이름은 줄여서 작성할수 있습니다. 예) XX중학교 -> XX중

시 이름을 줄여서 작성할수 있습니다. 에) 제주특별자치시 -> 제주

결과값 설명

  • { registerDtm: 'Sep 7, 2020 5:40:11 PM', inveYmd: '20200907' }

처리 성공

모든 오류는 err 객체에 담겨 돌아옵니다.

  • { err: REGION_NOT_FOUND }

입력된 소속 시 이름이 없습니다.

  • { err: SCHOOL_CODE_NOT_FOUND }

입력된 학교 코드가 발견되지 않았습니다.

  • { err: SCHOOL_LEVEL_NOT_FOUND }

입력된 학급 이름이 없습니다.

  • { err: SCHOOL_NOT_FOUND }

입력된 정보로 학교를 찾을수 없습니다.

  • { err: ALREADY_DIAGNOSED }

이미 오늘 자가진단을 했습니다.

  • { err: 503_SERVER_ERROR }

API 서버가 응답하지 않습니다.

이 아래의 오류들은 처리되지 못한 오류입니다.

  • { err: UNKNOWN_ERROR }

  • { err: message }

경고!

해당 라이브러리를 사용하여 생기는 문제는 사용자에게 있음을 알립니다.

사용 전 신중하게 생각을 해주세요

covid-auto_selfcheck's People

Contributors

heavyrisem avatar minikupa avatar ohurjon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

covid-auto_selfcheck's Issues

계속 참여자를 찾을 수 없다고 합니다.

{"err":"입력하신 정보로 참여자를 찾을 수 없습니다.\n확인후 다시 시도해주세요"}란 오류가 나옵니다. 지역이나, 학교, 학교 구분에 다른 문자를 추가하면 학교 또는 지역 등을 찾을 수 없다는 오류가 나는 것을 보니 학교, 지역은 잘 입력한 것 같습니다.

교사용 기능 추가 건의

교사용으로 누가 자가진단을 했는지 안했는지 확인할 수 있는 기능을 추가해주실 수 있으시나요?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.