Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
it512 committed Nov 16, 2024
1 parent baf824c commit 83cbda2
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 5,217 deletions.
5 changes: 1 addition & 4 deletions member/orm/dbop.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ func NewMemberDBOP(client *ent.Client) *MemberDBOP {
}

func (op *MemberDBOP) InsertNewMember(ctx context.Context, param Param) (*ent.Member, error) {
cr := op.client.Member.Create()
cr.SetCode(param.Code)
cr.SetWxOpenID(param.WxOpenID)
return cr.Save(ctx)
return insertNewMember(ctx, op.client, param)
}

func (op *MemberDBOP) SelectByCode(ctx context.Context, param Param) (*ent.Member, error) {
Expand Down
1 change: 0 additions & 1 deletion member/orm/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"

"github.com/it512/box"
"github.com/twiglab/crm/member/orm/ent"
"github.com/twiglab/crm/member/orm/ent/member"
)
Expand Down
35 changes: 0 additions & 35 deletions member/rpc/gql/graph/federation.go

This file was deleted.

Loading

0 comments on commit 83cbda2

Please sign in to comment.