service

package
v0.0.0-...-71f3af2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 16 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewCCNUService)

ProviderSet is service providers.

Functions

func BKSloginCCNU

func BKSloginCCNU(username, password string) (string, error)

BKSloginCCNU 模拟本科生登录CCNU并返回Cookie

func CheckIsUndergraduate

func CheckIsUndergraduate(stuId string) bool

CheckIsUndergraduate 检查该学号是否是本科生

func EncodeMM

func EncodeMM(password string) string

func GetModulusAndExpoent

func GetModulusAndExpoent() (string, string)

Types

type CCNUService

type CCNUService struct {
	v1.UnimplementedCCNUServiceServer
	// contains filtered or unexported fields
}

func NewCCNUService

func NewCCNUService(uc *biz.UserUsecase) *CCNUService

func (*CCNUService) GetCookie

func (*CCNUService) SaveUser

Jump to

Keyboard shortcuts

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