startday2
This commit is contained in:
parent
25fc142bdf
commit
18c4df1993
|
@ -26,7 +26,7 @@ func (s *StaffCheckin) List(ctx *gin.Context) {
|
||||||
|
|
||||||
func (s *StaffCheckin) Sync(ctx *gin.Context) {
|
func (s *StaffCheckin) Sync(ctx *gin.Context) {
|
||||||
var req api.SyncCheckin
|
var req api.SyncCheckin
|
||||||
if err := ctx.ShouldBind(&req); err != nil {
|
if err := ctx.ShouldBindJSON(&req); err != nil {
|
||||||
panic(config.ErrParam.New().Append(err))
|
panic(config.ErrParam.New().Append(err))
|
||||||
}
|
}
|
||||||
sess := ctx.Keys[session.ContextSession].(*session.AdminSession)
|
sess := ctx.Keys[session.ContextSession].(*session.AdminSession)
|
||||||
|
|
Loading…
Reference in New Issue