Documentation
¶
Index ¶
- Variables
- type EssayService
- type IEssayService
- type IStsService
- type IUserService
- type StsService
- func (s *StsService) ApplySignedUrl(ctx context.Context, req *show.ApplySignedUrlReq) (*show.ApplySignedUrlResp, error)
- func (s *StsService) OCR(ctx context.Context, req *show.OCRReq) (*show.OCRResp, error)
- func (s *StsService) SendVerifyCode(ctx context.Context, req *show.SendVerifyCodeReq) (*show.Response, error)
- type UserService
- func (u *UserService) GetUserInfo(ctx context.Context, req *show.GetUserInfoReq) (*show.GetUserInfoResp, error)
- func (u *UserService) SignIn(ctx context.Context, req *show.SignInReq) (*show.SignInResp, error)
- func (u *UserService) SignUp(ctx context.Context, req *show.SignUpReq) (*show.SignUpResp, error)
- func (u *UserService) UpdatePassword(ctx context.Context, req *show.UpdatePasswordReq) (*show.UpdatePasswordResp, error)
- func (u *UserService) UpdateUserInfo(ctx context.Context, req *show.UpdateUserInfoReq) (*show.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EssayServiceSet = wire.NewSet( wire.Struct(new(EssayService), "*"), wire.Bind(new(IEssayService), new(*EssayService)), )
View Source
var StsServiceSet = wire.NewSet( wire.Struct(new(StsService), "*"), wire.Bind(new(IStsService), new(*StsService)), )
View Source
var UserServiceSet = wire.NewSet( wire.Struct(new(UserService), "*"), wire.Bind(new(IUserService), new(*UserService)), )
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 IUserService ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.