You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
目標:
依照商業邏輯區分多個方法,讓每個方法做一個商業的邏輯。
原因
Controller
通常就是控制流程,依照目的性將商業邏輯,分別拆分多個方法,新增在前一個小練習ArticleService
檔案中,此檔案目的為專門處理Article
資源商業邏輯所有方法。必要完成任務
#1
備註
這裡沒有真的要撰寫商業邏輯,替商業邏輯方法命名,並使用註解的方法,簡易撰寫商業邏輯的詳細流程即可,如下範例,建立一個
sendEmail
方法於ArticleService
用於表示新建文章成功的通知信,還有很多可以做的事情,沒有標準答案主要就是每個方法做一件商業邏輯,新建於ArticleService
的練習。The text was updated successfully, but these errors were encountered: