Documentation
¶
Index ¶
- Constants
- func CusDataStructureFilling(typeStr string, mogu *MoguDing) map[string]interface{}
- func DataStructureFilling(mogu *MoguDing) map[string]interface{}
- func EncryptTimestamp(timestamp int64) (string, error)
- func GenerateRandomFloat(baseIntegerPart int) float64
- func GenerateReportAI(userInput string, wordLimit int) string
- func GetClockType() (string, error)
- func GetCustomClockType(playType int) (string, error)
- func GetFormattedTime() (string, error)
- func LoadUsers() []entity.SignEntity
- func SubmitStructureFilling(mogu *MoguDing, content, title, retype string) map[string]interface{}
- type JobInfo
- type Message
- type MoguDing
- func (mogu *MoguDing) CusSignIn(signType string)
- func (mogu *MoguDing) GetJobInfo() error
- func (mogu *MoguDing) GetPlanId() error
- func (mo *MoguDing) HandleCaptcha() error
- func (mogu *MoguDing) Login() error
- func (m *MoguDing) Run(runType string)
- func (mogu *MoguDing) SignIn()
- func (mogu *MoguDing) SubmitReport(reportType string, limit int)
- type RequestData
- type SignInfo
Constants ¶
View Source
const ( MaxRetries = 15 DefaultPlanID = "6686304d065db846edab7d4565065abc" PageSize = 999999 )
View Source
const ( START = iota END )
Variables ¶
This section is empty.
Functions ¶
func CusDataStructureFilling ¶
客制化打卡上班还是下班信息
func DataStructureFilling ¶
DataStructureFilling creates a data structure for signing.
func EncryptTimestamp ¶
EncryptTimestamp encrypts a given timestamp.
func GenerateRandomFloat ¶
GenerateRandomFloat generates a random float based on a base integer part.
func GenerateReportAI ¶
GenerateReportAI generates a report using AI based on user input.
func GetClockType ¶
GetClockType determines the clock type (START or END) based on the current time.
func GetCustomClockType ¶
GetCustomClockType Custom START or END
func GetFormattedTime ¶
GetFormattedTime returns the current time formatted as a string.
func LoadUsers ¶
func LoadUsers() []entity.SignEntity
LoadUsers loads user data either from configuration or database.
func SubmitStructureFilling ¶
SubmitStructureFilling creates a submission data structure.
Types ¶
type MoguDing ¶
type MoguDing struct { ID int `json:"ID"` UserId string `json:"userId"` RoleKey string `json:"roleKey"` Authorization string `json:"authorization"` PlanID string `json:"planId"` PlanName string `json:"planName"` PhoneNumber string `json:"phoneNumber"` Password string `json:"password"` Email string `json:"email"` Sign SignInfo `json:"sign"` CommParameters commonParameters `json:"commParameters"` ReportStruct report `json:"report"` WeekTime weekTime `json:"weekTime"` JobInfo JobInfo `json:"jobInfo"` }
func (*MoguDing) GetJobInfo ¶
func (*MoguDing) SubmitReport ¶
SubmitReport 提交定时报告
Click to show internal directories.
Click to hide internal directories.