50 lines
1.3 KiB
Go
50 lines
1.3 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)
|
|
}
|