新增注释

This commit is contained in:
2026-05-09 17:50:40 +08:00
parent d5c053e59d
commit 8504838ccb
19 changed files with 404 additions and 217 deletions
+3 -1
View File
@@ -6,10 +6,12 @@ import (
"net/http"
)
// CommonHandler 承载通用基础数据接口。
type CommonHandler struct {
Service *service.CommonService
Service *service.CommonService // 通用数据服务,负责访问交易日历等基础表。
}
// GetTradeCalendar 返回上交所开市日期列表和最新开市日期。
func (h *CommonHandler) GetTradeCalendar(c *gin.Context) {
resp, err := h.Service.GetTradeCalendar()
if err != nil {