Documentation
¶
Index ¶
- func AddOvertime(upd Overtimes) error
- func AddOvertimesApprover(upd OvertimesApprover) error
- func ChangeOvertimeResult(id int64, result int) error
- func ChangeOvertimeStatus(id int64, status int) error
- func CheckOvertimeApprover(id, userId int64) (int64, int)
- func CountOvertime(condArr map[string]string) int64
- func CountOvertimeApproval(condArr map[string]string) int64
- func DeleteOvertime(id int64) error
- func ListOvertimeApproverProcessHtml(overtimeid int64) string
- func UpdateOvertime(id int64, upd Overtimes) error
- func UpdateOvertimesApprover(id int64, upd OvertimesApprover) error
- type OvertimeApproverProcess
- type Overtimes
- type OvertimesApprover
- type TmpOvertimeCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOvertime ¶
func AddOvertimesApprover ¶
func AddOvertimesApprover(upd OvertimesApprover) error
func ChangeOvertimeResult ¶
func ChangeOvertimeStatus ¶
func CountOvertime ¶
func CountOvertimeApproval ¶
func DeleteOvertime ¶
func UpdateOvertime ¶
func UpdateOvertimesApprover ¶
func UpdateOvertimesApprover(id int64, upd OvertimesApprover) error
Types ¶
type OvertimeApproverProcess ¶
type OvertimeApproverProcess struct {
Userid int64
Realname string
Avatar string
Position string
Status int
Summary string
Changed int64
}
func ListOvertimeApproverProcess ¶
func ListOvertimeApproverProcess(overtimeid int64) (num int64, err error, user []OvertimeApproverProcess)
type Overtimes ¶
type Overtimes struct {
Id int64 `orm:"pk;column(overtimeid);"`
Userid int64
Started int64
Ended int64
Longtime float64
Holiday int
Way int
Reason string
Result int
Status int
Approverids string
Created int64
Changed int64
}
func GetOvertime ¶
func ListOvertime ¶
type OvertimesApprover ¶
type OvertimesApprover struct {
Id int64 `orm:"pk;column(approverid);"`
Overtimeid int64
Userid int64
Summary string
Status int
Created int64
Changed int64
}
func (*OvertimesApprover) TableName ¶
func (this *OvertimesApprover) TableName() string
type TmpOvertimeCount ¶
type TmpOvertimeCount struct {
Num int64
}
Click to show internal directories.
Click to hide internal directories.