mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-29 04:55:04 +08:00
搭建好了一个框架,准备实现数据库相关功能
This commit is contained in:
@@ -3,6 +3,7 @@ package handler
|
||||
import (
|
||||
"github.com/golang-module/carbon/v2"
|
||||
"zsxyww.com/scheduler/config"
|
||||
"zsxyww.com/scheduler/model"
|
||||
)
|
||||
|
||||
// 输入一个时间,返回时间是第几周的第几天
|
||||
@@ -12,3 +13,8 @@ func getWorkDay(in carbon.Carbon) (weekOffset int, dayOffset int) {
|
||||
_dayOffset := in.DayOfWeek()
|
||||
return int(_weekOffset), _dayOffset
|
||||
}
|
||||
|
||||
// 输入成员工号,返回这个成员的信息
|
||||
func getMemberByID(in int) *model.Member {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user