Files
scheduler/handler/unit/tweaks.go
2025-05-19 13:41:43 +08:00

47 lines
971 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package uo
import (
"zsxyww.com/scheduler/model"
)
// 增加一项tweak
func (uo *uoPrototype) addTweak(in *model.Tweak) error {
_ = uo.c.Create(in)
if uo.c.Error != nil {
return uo.c.Error
}
return nil
}
// 删除一项tweak
func (uo *uoPrototype) deleteTweak(in *model.Tweak) error {
if uo.c.Error != nil {
return uo.c.Error
}
return nil
}
// 查询一些tweak通过IssueID
func (uo *uoPrototype) getTweakByIssueID(in *model.Tweak) (result []*model.Tweak, err error) {
if uo.c.Error != nil {
return nil, uo.c.Error
}
return nil, nil
}
// 查询一些tweak通过一个日期
func (uo *uoPrototype) getTweakByTime(in *model.Tweak) (result []*model.Tweak, err error) {
if uo.c.Error != nil {
return nil, uo.c.Error
}
return nil, nil
}
// 查询一些tweak通过一个工号
func (uo *uoPrototype) getTweakByID(in *model.Tweak) (result []*model.Tweak, err error) {
if uo.c.Error != nil {
return nil, uo.c.Error
}
return nil, nil
}