Skip to content

Commit b13a66a

Browse files
author
lenye
committed
fix: 更名为AtAllUser
1 parent 1b3d05c commit b13a66a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

flags/flags.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ const (
6363
OpenKfID = "open_kf_id"
6464
MsgID = "msg_id"
6565

66-
AllUser = "@all"
67-
68-
AtUser = "at_user"
69-
AtMobile = "at_mobile"
70-
IsAtAll = "is_at_all"
66+
AtAllUser = "@all"
67+
AtUser = "at_user"
68+
AtMobile = "at_mobile"
69+
IsAtAll = "is_at_all"
7170

7271
IsRaw = "raw"
7372
)

im/weixin/work/message/app_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (t *CmdWorkSendAppParams) Validate() error {
5353
return fmt.Errorf("%v、%v、%v cannot be empty at the same time", flags.ToUser, flags.ToParty, flags.ToTag)
5454
}
5555

56-
if t.ToUser == flags.AllUser {
56+
if t.ToUser == flags.AtAllUser {
5757
t.ToParty = ""
5858
t.ToTag = ""
5959
} else {

0 commit comments

Comments
 (0)