Documentation
¶
Index ¶
- Variables
- func NewJobRepoImpl(data *Data, logger log.Logger) biz.JobRepo
- func NewNoticeRepoImpl(data *Data, logger log.Logger) biz.NoticeRepo
- func NewSignInRepoImpl(data *Data, logger log.Logger) biz.SignInRepo
- func NewWxRepoImpl(logger log.Logger) biz.WxRepo
- type BucketName
- type Data
- type JobRepoImpl
- func (j *JobRepoImpl) DeleteJob(ctx context.Context, openid string, jobID uint64) error
- func (j *JobRepoImpl) GetAllJobs(ctx context.Context, openid string) ([]*biz.Job, error)
- func (j *JobRepoImpl) GetJobByID(ctx context.Context, openid string, jobID uint64) (job *biz.Job, err error)
- func (j *JobRepoImpl) PutJob(ctx context.Context, job *biz.Job) (*biz.Job, error)
- func (j *JobRepoImpl) TableName() string
- func (j *JobRepoImpl) TableNameWithOpenID(openid string) string
- type NoticeRepoImpl
- type SignInRepoImpl
- type WxRepoImpl
- func (w *WxRepoImpl) Code2Session(ctx context.Context, request *pb.Code2SessionRequest) (*pb.Code2SessionReply, error)
- func (w *WxRepoImpl) GetAccessToken(ctx context.Context, request *pb.GetAccessTokenRequest) (*pb.GetAccessTokenReply, error)
- func (w *WxRepoImpl) SubscribeSend(ctx context.Context, request *pb.SubscribeSendRequest) (*pb.SubscribeSendReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewWxRepoImpl, NewJobRepoImpl, NewNoticeRepoImpl, NewSignInRepoImpl)
ProviderSet is data providers.
Functions ¶
func NewNoticeRepoImpl ¶
func NewNoticeRepoImpl(data *Data, logger log.Logger) biz.NoticeRepo
func NewSignInRepoImpl ¶
func NewSignInRepoImpl(data *Data, logger log.Logger) biz.SignInRepo
Types ¶
type BucketName ¶
type BucketName interface {
TableName() string
}
type JobRepoImpl ¶
type JobRepoImpl struct {
// contains filtered or unexported fields
}
func (*JobRepoImpl) GetAllJobs ¶
func (*JobRepoImpl) GetJobByID ¶
func (*JobRepoImpl) TableName ¶
func (j *JobRepoImpl) TableName() string
func (*JobRepoImpl) TableNameWithOpenID ¶
func (j *JobRepoImpl) TableNameWithOpenID(openid string) string
type NoticeRepoImpl ¶
type NoticeRepoImpl struct {
// contains filtered or unexported fields
}
func (*NoticeRepoImpl) AddOpenID ¶
func (n *NoticeRepoImpl) AddOpenID(ctx context.Context, openID string) error
func (*NoticeRepoImpl) CheckOpenID ¶
func (n *NoticeRepoImpl) CheckOpenID(ctx context.Context, openID string) error
func (*NoticeRepoImpl) GetAllOpenID ¶
func (n *NoticeRepoImpl) GetAllOpenID(ctx context.Context) ([]string, error)
func (*NoticeRepoImpl) TableName ¶
func (n *NoticeRepoImpl) TableName() string
type SignInRepoImpl ¶
type SignInRepoImpl struct {
// contains filtered or unexported fields
}
func (*SignInRepoImpl) GetSignInList ¶
func (*SignInRepoImpl) TableName ¶
func (s *SignInRepoImpl) TableName() string
func (*SignInRepoImpl) TableNameWithOpenID ¶
func (s *SignInRepoImpl) TableNameWithOpenID(openid string) string
type WxRepoImpl ¶
type WxRepoImpl struct {
// contains filtered or unexported fields
}
func (*WxRepoImpl) Code2Session ¶
func (w *WxRepoImpl) Code2Session(ctx context.Context, request *pb.Code2SessionRequest) (*pb.Code2SessionReply, error)
func (*WxRepoImpl) GetAccessToken ¶
func (w *WxRepoImpl) GetAccessToken(ctx context.Context, request *pb.GetAccessTokenRequest) (*pb.GetAccessTokenReply, error)
func (*WxRepoImpl) SubscribeSend ¶
func (w *WxRepoImpl) SubscribeSend(ctx context.Context, request *pb.SubscribeSendRequest) (*pb.SubscribeSendReply, error)
Click to show internal directories.
Click to hide internal directories.