-
Notifications
You must be signed in to change notification settings - Fork 357
/
tos_service_impl.go
48 lines (39 loc) · 1.44 KB
/
tos_service_impl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* WARNING! All changes made in this file will be lost!
* Created from 'scheme.tl' by 'mtprotoc'
*
* Copyright 2022 Teamgram Authors.
* All rights reserved.
*
* Author: teamgramio (teamgram.io@gmail.com)
*/
package service
import (
"context"
"github.com/teamgram/proto/mtproto"
"github.com/teamgram/teamgram-server/app/bff/tos/internal/core"
)
// HelpGetTermsOfServiceUpdate
// help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;
func (s *Service) HelpGetTermsOfServiceUpdate(ctx context.Context, request *mtproto.TLHelpGetTermsOfServiceUpdate) (*mtproto.Help_TermsOfServiceUpdate, error) {
c := core.New(ctx, s.svcCtx)
c.Infof("help.getTermsOfServiceUpdate - metadata: %s, request: %s", c.MD.DebugString(), request.DebugString())
r, err := c.HelpGetTermsOfServiceUpdate(request)
if err != nil {
return nil, err
}
c.Infof("help.getTermsOfServiceUpdate - reply: %s", r.DebugString())
return r, err
}
// HelpAcceptTermsOfService
// help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;
func (s *Service) HelpAcceptTermsOfService(ctx context.Context, request *mtproto.TLHelpAcceptTermsOfService) (*mtproto.Bool, error) {
c := core.New(ctx, s.svcCtx)
c.Infof("help.acceptTermsOfService - metadata: %s, request: %s", c.MD.DebugString(), request.DebugString())
r, err := c.HelpAcceptTermsOfService(request)
if err != nil {
return nil, err
}
c.Infof("help.acceptTermsOfService - reply: %s", r.DebugString())
return r, err
}