新增注释
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user