Versions in this module Expand all Collapse all v1 v1.0.0 Aug 31, 2021 Changes in this version + func AnyToDecimal(num string, n int) int64 + func Crc32IEEE(str string) uint32 + func DecimalToAny(num int64, n int) string + func EncodeMD5(value string) string + func FileExists(path string) bool + func FirstDayOfISOWeek(year int, week int, timezone *time.Location) time.Time + func GenerateToken(username, password string) (string, error) + func GetMobileOfToken(token string) string + func GetPage(c *gin.Context) int + func GetUniversalCode() string + func HttpGet(getUrl string) (string, error) + func HttpPost(postUrl string, postData map[string]string) (string, error) + func HttpPost2(my_url string, postData string) (string, error) + func RandKey() int + func RandMobileCode() int + func RandPassword() int + func Round(f float64, n int) float64 + func ToPostDate(model interface{}) (map[string]string, error) + type AesEncrypt struct + func (this *AesEncrypt) AesDecrypt(str string) string + func (this *AesEncrypt) AesEncrypt(strMesg string) string + type ApiCode struct + Code int + type ApiStudent struct + Code int + Data ApiStudentData + func CreateStudentFromUserCenter(registerStudent RegisterStudent) (ApiStudent, error) + func GetApiStudentByUnionId(unionId string) (ApiStudent, error) + func GetStudentFromUserCenter(token string) (ApiStudent, error) + type ApiStudentData struct + Mobile string + StudentId int64 + Token string + UserId int64 + UserName string + type ApiStudentSlice struct + Code int + Data []ApiStudentData + type ApiToken struct + Code int + Data TokenData + func GetApiTokenByStudentId(studentId int64) (ApiToken, error) + type Claims struct + Password string + Username string + func ParseToken(token string) (*Claims, error) + type ConfigData struct + Sms []string + User []string + type ConfigInfo struct + Code int + Data ConfigData + func GetUserCenterConfig(forceUpdate bool) ConfigInfo + type RegisterStudent struct + Channel string + City string + ClientSource string + Country string + HeadPhoto string + Nickname string + Province string + Sex string + UnionId string + Version string + type TokenData struct + Token string