Versions in this module Expand all Collapse all v1 v1.7.0 Nov 22, 2024 Changes in this version + type AddOrUpdateAdjustmentRoleReq struct + GroupId int64 + Id int64 + RotaRule RotaAdjustmentRule + type AddRoleReq struct + Id int64 + RotaRule RotaRule + type CreateRotaReq struct + Desc string + Enabled bool + Name string + Owner int64 + type DeleteAdjustmentRoleReq struct + GroupId int64 + Id int64 + type DeleteReq struct + Id int64 + type DetailById struct + Id int64 + type DetailReq struct + Id int64 + type GenerateShiftRosteredReq struct + EndTime int64 + Id int64 + StartTime int64 + type Handler struct + func NewHandler(svc service.Service) *Handler + func (h *Handler) AddShiftAdjustmentRule(ctx *gin.Context, req AddOrUpdateAdjustmentRoleReq) (ginx.Result, error) + func (h *Handler) AddShiftSchedulingRule(ctx *gin.Context, req AddRoleReq) (ginx.Result, error) + func (h *Handler) Create(ctx *gin.Context, req CreateRotaReq) (ginx.Result, error) + func (h *Handler) Delete(ctx *gin.Context, req DeleteReq) (ginx.Result, error) + func (h *Handler) DeleteShiftAdjustmentRule(ctx *gin.Context, req DeleteAdjustmentRoleReq) (ginx.Result, error) + func (h *Handler) Detail(ctx *gin.Context, req DetailReq) (ginx.Result, error) + func (h *Handler) GenerateShiftRostered(ctx *gin.Context, req GenerateShiftRosteredReq) (ginx.Result, error) + func (h *Handler) GetRuleListById(ctx *gin.Context, req DetailById) (ginx.Result, error) + func (h *Handler) List(ctx *gin.Context, req ListReq) (ginx.Result, error) + func (h *Handler) PrivateRoutes(server *gin.Engine) + func (h *Handler) Update(ctx *gin.Context, req UpdateReq) (ginx.Result, error) + func (h *Handler) UpdateShiftAdjustmentRule(ctx *gin.Context, req AddOrUpdateAdjustmentRoleReq) (ginx.Result, error) + func (h *Handler) UpdateShiftSchedulingRole(ctx *gin.Context, req UpdateShiftRuleReq) (ginx.Result, error) + type ListReq struct + Limit int64 + Offset int64 + type RetrieveRotas struct + Rotas []Rota + Total int64 + type RetrieveShiftRostered struct + CurrentSchedule Schedule + FinalSchedule []Schedule + Members []int64 + NextSchedule Schedule + type Rota struct + AdjustmentRules []RotaAdjustmentRule + Desc string + Enabled bool + Id int64 + Name string + Owner int64 + Rules []RotaRule + type RotaAdjustmentRule struct + EndTime int64 + RotaGroup RotaGroup + StartTime int64 + type RotaGroup struct + Id int64 + Members []int64 + Name string + type RotaRule struct + EndTime int64 + RotaGroups []RotaGroup + Rotate Rotate + StartTime int64 + type Rotate struct + TimeDuration uint8 + TimeUnit uint8 + type Schedule struct + EndTime int64 + RotaGroup RotaGroup + StartTime int64 + Title string + type UpdateReq struct + Desc string + Enabled bool + Id int64 + Name string + Owner int64 + type UpdateShiftRuleReq struct + Id int64 + RotaRules []RotaRule