cronjob-golang-API-withdraw.msd 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #//# --------------------------------------------------------------------------------------
  2. #//# Created using Sequence Diagram for Mac
  3. #//# https://www.macsequencediagram.com
  4. #//# https://itunes.apple.com/gb/app/sequence-diagram/id1195426709?mt=12
  5. #//# --------------------------------------------------------------------------------------
  6. title "How to Run CronJob by Golang API"
  7. participant Backend_CronJobs as cron
  8. participant Frontend_api23_cronjob as frontend
  9. participant Backend_API as backend
  10. participant ERP_DB as erpdb
  11. #participant MemoryDB as bunt_db
  12. activate cron
  13. cron->cron: awake cronjob \nat 03:00AM
  14. activate frontend
  15. cron->frontend: request /api23-cronjobs
  16. activate backend
  17. frontend->backend: request /member-page \n withdrawal-schedule list\n Query( ( withdraw_on - 4일 ) = 현재일자 )
  18. backend->frontend: response 200 \n%{member-page}
  19. deactivate backend
  20. frontend->frontend: withdraw schecudule mail log
  21. activate backend
  22. frontend->backend: request /withdraw-member-finish
  23. backend->erpdb: fill 'unknown' into member records
  24. backend->erpdb: fill 'unknown' into member_ext records
  25. backend->frontend : response {id list}
  26. deactivate backend
  27. frontend->cron: response 200
  28. frontend->frontend: withdraw finish log
  29. deactivate frontend
  30. deactivate cron