Documentation ¶
Index ¶
- func AddLeave(upd Leaves) error
- func AddLeavesApprover(upd LeavesApprover) error
- func ChangeLeaveResult(id int64, result int) error
- func ChangeLeaveStatus(id int64, status int) error
- func CheckLeaveApprover(id, userId int64) (int64, int)
- func CountLeave(condArr map[string]string) int64
- func CountLeaveApproval(condArr map[string]string) int64
- func DeleteLeave(id int64) error
- func ListLeaveApproverProcessHtml(leaveid int64) string
- func UpdateLeave(id int64, upd Leaves) error
- func UpdateLeavesApprover(id int64, upd LeavesApprover) error
- type LeaveApproverProcess
- type Leaves
- type LeavesApprover
- type TmpLeaveCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLeavesApprover ¶
func AddLeavesApprover(upd LeavesApprover) error
func ChangeLeaveResult ¶
func ChangeLeaveStatus ¶
func CountLeave ¶
func CountLeaveApproval ¶
func DeleteLeave ¶
func UpdateLeave ¶
func UpdateLeavesApprover ¶
func UpdateLeavesApprover(id int64, upd LeavesApprover) error
Types ¶
type LeaveApproverProcess ¶
type LeaveApproverProcess struct { Userid int64 Realname string Avatar string Position string Status int Summary string Changed int64 }
func ListLeaveApproverProcess ¶
func ListLeaveApproverProcess(leaveid int64) (num int64, err error, user []LeaveApproverProcess)
type Leaves ¶
type Leaves struct { Id int64 `orm:"pk;column(leaveid);"` Userid int64 Type int Started int64 Ended int64 Days float64 Reason string Picture string Result int Status int Approverids string Created int64 Changed int64 }
type LeavesApprover ¶
type LeavesApprover struct { Id int64 `orm:"pk;column(approverid);"` Leaveid int64 Userid int64 Summary string Status int Created int64 Changed int64 }
func (*LeavesApprover) TableName ¶
func (this *LeavesApprover) TableName() string
type TmpLeaveCount ¶
type TmpLeaveCount struct {
Num int64
}
Click to show internal directories.
Click to hide internal directories.