feat: wecom curd

This commit is contained in:
zzw
2026-08-31 11:10:15 +08:00
parent 53d203ee14
commit d618ac32b0
37 changed files with 2707 additions and 33 deletions
@@ -0,0 +1,49 @@
// 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)
}