service

package
v0.0.0-...-c01e1c1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type EssayService

type EssayService struct {
	LogMapper  *log.MongoMapper
	UserMapper *user.MongoMapper
}

func (*EssayService) EssayEvaluate

func (s *EssayService) EssayEvaluate(ctx context.Context, req *show.EssayEvaluateReq) (*show.EssayEvaluateResp, error)

func (*EssayService) GetEvaluateLogs

func (s *EssayService) GetEvaluateLogs(ctx context.Context, req *show.GetEssayEvaluateLogsReq) (resp *show.GetEssayEvaluateLogsResp, err error)

type IEssayService

type IEssayService interface {
	EssayEvaluate(ctx context.Context, req *show.EssayEvaluateReq) (resp *show.EssayEvaluateResp, err error)
	GetEvaluateLogs(ctx context.Context, req *show.GetEssayEvaluateLogsReq) (resp *show.GetEssayEvaluateLogsResp, err error)
}

type IStsService

type IStsService interface {
	ApplySignedUrl(ctx context.Context, req *show.ApplySignedUrlReq) (*show.ApplySignedUrlResp, error)
	OCR(ctx context.Context, req *show.OCRReq) (*show.OCRResp, error)
	SendVerifyCode(ctx context.Context, req *show.SendVerifyCodeReq) (*show.Response, error)
}

type IUserService

type IUserService interface {
	SignUp(ctx context.Context, req *show.SignUpReq) (*show.SignUpResp, error)
}

type StsService

type StsService struct {
	PlatformSts platform_sts.IPlatformSts
	UserMapper  *user.MongoMapper
}

func (*StsService) ApplySignedUrl

func (s *StsService) ApplySignedUrl(ctx context.Context, req *show.ApplySignedUrlReq) (*show.ApplySignedUrlResp, error)

func (*StsService) OCR

func (s *StsService) OCR(ctx context.Context, req *show.OCRReq) (*show.OCRResp, error)

func (*StsService) SendVerifyCode

func (s *StsService) SendVerifyCode(ctx context.Context, req *show.SendVerifyCodeReq) (*show.Response, error)

type UserService

type UserService struct {
	UserMapper *user.MongoMapper
}

func (*UserService) GetUserInfo

func (u *UserService) GetUserInfo(ctx context.Context, req *show.GetUserInfoReq) (*show.GetUserInfoResp, error)

func (*UserService) SignIn

func (u *UserService) SignIn(ctx context.Context, req *show.SignInReq) (*show.SignInResp, error)

func (*UserService) SignUp

func (u *UserService) SignUp(ctx context.Context, req *show.SignUpReq) (*show.SignUpResp, error)

func (*UserService) UpdatePassword

func (u *UserService) UpdatePassword(ctx context.Context, req *show.UpdatePasswordReq) (*show.UpdatePasswordResp, error)

func (*UserService) UpdateUserInfo

func (u *UserService) UpdateUserInfo(ctx context.Context, req *show.UpdateUserInfoReq) (*show.Response, error)

Jump to

Keyboard shortcuts

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