# 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/uoxrjsq
使用 Go 反射機制封裝 Gorm 分頁功能**
1 需求在前後端分離項目中分頁是非常常見的需求,最近在使用 Gin 重構 SpringBoot 項目,整合的 orm 框架是 Gorm。然而 Golang 生態相對來 Java 說比較靈活(低情商:簡陋),很多東西都需要自己封裝 。網上查了一圈 Gorm 的分頁方案感覺都不是自己需要的,因此打算使用 Gorm 封裝一個類似 Mybatis-Plus 的分頁方案,可以對實現類似 “泛型” 查詢的效果 ⌘ Read more