Documentation ¶
Index ¶
- Constants
- func ApproveLeave(params *ApproveLeaveRequest) error
- func CreateLeave(params *CreateLeaveRequest) (string, error)
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func RevokeLeave(params *RevokeLeaveRequest) error
- func UpdateLeave(params *UpdateLeaveRequest) error
- type ApplyInfo
- type ApproveInfo
- type ApproveLeaveRequest
- type ApproveLeaveResponse
- type CreateLeaveRequest
- type CreateLeaveResponse
- type GetApproveQuery
- type GetLeaveOneQuery
- type GetLeaveOneResponse
- type GetLeavePageQuery
- type GetLeavePageResponse
- type GetMultiResponse
- type GetOneResult
- type RevokeLeaveRequest
- type RevokeLeaveResponse
- type UpdateLeaveRequest
- type UpdateLeaveResponse
Constants ¶
View Source
const (
GetLeavePageFormatMethodName = methodNamePrefix + "/leave/apply"
)
Variables ¶
This section is empty.
Functions ¶
func ApproveLeave ¶
func ApproveLeave(params *ApproveLeaveRequest) error
func CreateLeave ¶
func CreateLeave(params *CreateLeaveRequest) (string, error)
func RevokeLeave ¶
func RevokeLeave(params *RevokeLeaveRequest) error
func UpdateLeave ¶
func UpdateLeave(params *UpdateLeaveRequest) error
Types ¶
type ApplyInfo ¶
type ApplyInfo struct { ID string `json:"id"` Type uint8 `json:"type"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Duration float32 `json:"duration"` Reason string `json:"reason"` CompanyID string `json:"CompanyId"` DeptID string `json:"deptId"` FlowLevel uint8 `json:"flowLevel"` Status uint8 `json:"status"` CurrApprovedMemberID string `json:"currApprovedMemberId"` ApplyMemberID string `json:"applyMemberId"` ApplyTime string `json:"applyTime"` }
func GetLeavePage ¶
func GetLeavePage(params *GetLeavePageQuery) ([]ApplyInfo, int64, float64, error)
type ApproveInfo ¶
type ApproveInfo struct { ID string `json:"id"` ApplyID string `json:"applyId"` Type uint8 `json:"type"` Result uint8 `json:"result"` Remark string `json:"remark"` MemberID string `json:"MemberId"` CompanyID string `json:"companyId"` ExecTime string `json:"execTime"` ApplyMemberID string `json:"applyMemberId"` }
type ApproveLeaveRequest ¶
type ApproveLeaveRequest struct { ApplyID string `json:"applyId"` ApplyMemberID string `json:"applyMemberId"` CompanyID string `json:"companyId"` Level uint8 `json:"level"` ApproveMemberID string `json:"approveMemberId"` ApproveResult uint8 `json:"approveResult"` ApproveRemark string `json:"approveRemark"` }
type ApproveLeaveResponse ¶
type ApproveLeaveResponse struct {
// contains filtered or unexported fields
}
type CreateLeaveRequest ¶
type CreateLeaveRequest struct { ID string `json:"id"` Type uint8 `json:"type"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Duration float32 `json:"duration"` Reason string `json:"reason"` CompanyID string `json:"companyId"` DeptID string `json:"deptId"` ApplyMemberID string `json:"applyMemberId"` ApproveMemberIds string `json:"approveMemberIds"` CopyMemberIds string `json:"copyMemberIds"` }
type CreateLeaveResponse ¶
type CreateLeaveResponse struct { ID string `json:"id" binding:"required"` // contains filtered or unexported fields }
type GetApproveQuery ¶
type GetLeaveOneQuery ¶
type GetLeaveOneResponse ¶
type GetLeaveOneResponse struct { Info *GetOneResult // contains filtered or unexported fields }
type GetLeavePageQuery ¶
type GetLeavePageQuery struct { ID string `form:"id"` Type uint8 `form:"type"` Duration float64 `form:"duration"` CompanyID string `form:"companyId"` DeptID string `form:"deptId"` FlowLevel uint8 `form:"flowLevel"` Status string `form:"status"` CurrApprovedMemberID string `form:"currApprovedMemberId"` ApplyMemberID string `form:"applyMemberId"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type GetLeavePageResponse ¶
type GetMultiResponse ¶
type GetMultiResponse struct { Infos []GetOneResult // contains filtered or unexported fields }
type GetOneResult ¶
type GetOneResult struct { ApplyInfo *ApplyInfo ApproveInfos []ApproveInfo }
func GetLeaveCopy ¶
func GetLeaveCopy(params *GetApproveQuery) ([]GetOneResult, error)
func GetLeaveExec ¶
func GetLeaveExec(params *GetApproveQuery) ([]GetOneResult, error)
func GetLeaveOne ¶
func GetLeaveOne(params *GetLeaveOneQuery) (*GetOneResult, error)
func GetLeaveWait ¶
func GetLeaveWait(params *GetApproveQuery) ([]GetOneResult, error)
type RevokeLeaveRequest ¶
type RevokeLeaveRequest struct {
ID string `json:"id"`
}
type RevokeLeaveResponse ¶
type RevokeLeaveResponse struct {
// contains filtered or unexported fields
}
type UpdateLeaveRequest ¶
type UpdateLeaveResponse ¶
type UpdateLeaveResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.