Files
lone-services/services/wecom/internal/server/wecomServer.go
T

82 lines
2.5 KiB
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.10.1
// Source: wecom.proto
package server
import (
"context"
"lone-services/rpc/wecom/pb"
"lone-services/services/wecom/internal/logic"
"lone-services/services/wecom/internal/svc"
)
type WecomServer struct {
svcCtx *svc.ServiceContext
wecom.UnimplementedWecomServer
}
func NewWecomServer(svcCtx *svc.ServiceContext) *WecomServer {
return &WecomServer{
svcCtx: svcCtx,
}
}
func (s *WecomServer) ItemsUsers(ctx context.Context, in *wecom.ItemsUserReq) (*wecom.Response, error) {
l := logic.NewItemsUsersLogic(ctx, s.svcCtx)
return l.ItemsUsers(in)
}
func (s *WecomServer) CreateUser(ctx context.Context, in *wecom.CreateUserReq) (*wecom.Response, error) {
l := logic.NewCreateUserLogic(ctx, s.svcCtx)
return l.CreateUser(in)
}
func (s *WecomServer) UpdateUser(ctx context.Context, in *wecom.UpdateUserReq) (*wecom.Response, error) {
l := logic.NewUpdateUserLogic(ctx, s.svcCtx)
return l.UpdateUser(in)
}
func (s *WecomServer) StatusUser(ctx context.Context, in *wecom.StatusUserReq) (*wecom.Response, error) {
l := logic.NewStatusUserLogic(ctx, s.svcCtx)
return l.StatusUser(in)
}
func (s *WecomServer) DeleteUser(ctx context.Context, in *wecom.DeleteUserReq) (*wecom.Response, error) {
l := logic.NewDeleteUserLogic(ctx, s.svcCtx)
return l.DeleteUser(in)
}
func (s *WecomServer) ItemsAgents(ctx context.Context, in *wecom.EmptyReq) (*wecom.Response, error) {
l := logic.NewItemsAgentsLogic(ctx, s.svcCtx)
return l.ItemsAgents(in)
}
func (s *WecomServer) Types(ctx context.Context, in *wecom.EmptyReq) (*wecom.Response, error) {
l := logic.NewTypesLogic(ctx, s.svcCtx)
return l.Types(in)
}
func (s *WecomServer) CreateTags(ctx context.Context, in *wecom.CreateTagsReq) (*wecom.Response, error) {
l := logic.NewCreateTagsLogic(ctx, s.svcCtx)
return l.CreateTags(in)
}
func (s *WecomServer) ItemsTags(ctx context.Context, in *wecom.ItemsTagsReq) (*wecom.Response, error) {
l := logic.NewItemsTagsLogic(ctx, s.svcCtx)
return l.ItemsTags(in)
}
// 内部接口:产品/门店/地址新增或修改时写入审核变更快照
func (s *WecomServer) CreateReviewChange(ctx context.Context, in *wecom.CreateReviewChangeReq) (*wecom.Response, error) {
l := logic.NewCreateReviewChangeLogic(ctx, s.svcCtx)
return l.CreateReviewChange(in)
}
// 内部接口:发送企微审核/通知消息
func (s *WecomServer) SendMessage(ctx context.Context, in *wecom.SendMessageReq) (*wecom.Response, error) {
l := logic.NewSendMessageLogic(ctx, s.svcCtx)
return l.SendMessage(in)
}