mbam

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

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 GetApproveQuery struct {
	CompanyID string `form:"companyId"`
	MemberID  string `form:"memberId"`
}

type GetLeaveOneQuery

type GetLeaveOneQuery struct {
	ID        string `form:"id"`
	CompanyID string `form:"companyId"`
}

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 GetLeavePageResponse struct {
	Infos      []ApplyInfo
	TotalCount int64
	PageNo     int
	MonthCount float64
	// contains filtered or unexported fields
}

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 UpdateLeaveRequest 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"`
	ApplyMemberID string  `json:"applyMemberId"`
}

type UpdateLeaveResponse

type UpdateLeaveResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL