-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoOpenimTribeModifytribeinfoRequest.go
90 lines (68 loc) · 1.9 KB
/
TaobaoOpenimTribeModifytribeinfoRequest.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package openim
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
OPENIM群信息修改 APIRequest
taobao.openim.tribe.modifytribeinfo
OPENIM群信息修改
*/
type TaobaoOpenimTribeModifytribeinfoRequest struct {
model.Params
// 用户信息
user *OpenImUser
// 群名称
tribeName string
// 群公告
notice string
// 群id
tribeId int64
}
func NewTaobaoOpenimTribeModifytribeinfoRequest() *TaobaoOpenimTribeModifytribeinfoRequest{
return &TaobaoOpenimTribeModifytribeinfoRequest{
Params: model.NewParams(),
}
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetApiMethodName() string {
return "taobao.openim.tribe.modifytribeinfo"
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
func (r *TaobaoOpenimTribeModifytribeinfoRequest) SetUser(user *OpenImUser) error {
r.user = user
r.Set("user", user)
return nil
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetUser() *OpenImUser {
return r.user
}
func (r *TaobaoOpenimTribeModifytribeinfoRequest) SetTribeName(tribeName string) error {
r.tribeName = tribeName
r.Set("tribe_name", tribeName)
return nil
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetTribeName() string {
return r.tribeName
}
func (r *TaobaoOpenimTribeModifytribeinfoRequest) SetNotice(notice string) error {
r.notice = notice
r.Set("notice", notice)
return nil
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetNotice() string {
return r.notice
}
func (r *TaobaoOpenimTribeModifytribeinfoRequest) SetTribeId(tribeId int64) error {
r.tribeId = tribeId
r.Set("tribe_id", tribeId)
return nil
}
func (r TaobaoOpenimTribeModifytribeinfoRequest) GetTribeId() int64 {
return r.tribeId
}