# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/pkexhjq
CTO 說:Service 層接口,就是多此一舉!**
今天我們要探討的問題是:Service 層需要接口?現在結合我參與的項目以及閱讀的一些項目源碼來看。如果「項目中使用了像 Spring 這樣的依賴注入框架,那可以不用接口」!先來說說爲什麼使用了依賴注入框架以後,可以不使用接口!不需要接口的理由------------我整理了支持 Service 層和 Dao 層需要加上接口的理由,總結下來就這麼三個:1、可以在尚未實現具體 Service 邏輯的 ⌘ Read more