Skip to content

Commit 1c106ac

Browse files
committed
优化消息通知相关代码
1 parent 9f4a32b commit 1c106ac

File tree

2 files changed

+9
-31
lines changed

2 files changed

+9
-31
lines changed

internal/rpc/rpc_client.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -280,34 +280,6 @@ func (this *RPCClient) MessageRPC() pb.MessageServiceClient {
280280
return pb.NewMessageServiceClient(this.pickConn())
281281
}
282282

283-
func (this *RPCClient) MessageRecipientGroupRPC() pb.MessageRecipientGroupServiceClient {
284-
return pb.NewMessageRecipientGroupServiceClient(this.pickConn())
285-
}
286-
287-
func (this *RPCClient) MessageRecipientRPC() pb.MessageRecipientServiceClient {
288-
return pb.NewMessageRecipientServiceClient(this.pickConn())
289-
}
290-
291-
func (this *RPCClient) MessageMediaRPC() pb.MessageMediaServiceClient {
292-
return pb.NewMessageMediaServiceClient(this.pickConn())
293-
}
294-
295-
func (this *RPCClient) MessageMediaInstanceRPC() pb.MessageMediaInstanceServiceClient {
296-
return pb.NewMessageMediaInstanceServiceClient(this.pickConn())
297-
}
298-
299-
func (this *RPCClient) MessageTaskRPC() pb.MessageTaskServiceClient {
300-
return pb.NewMessageTaskServiceClient(this.pickConn())
301-
}
302-
303-
func (this *RPCClient) MessageTaskLogRPC() pb.MessageTaskLogServiceClient {
304-
return pb.NewMessageTaskLogServiceClient(this.pickConn())
305-
}
306-
307-
func (this *RPCClient) MessageReceiverRPC() pb.MessageReceiverServiceClient {
308-
return pb.NewMessageReceiverServiceClient(this.pickConn())
309-
}
310-
311283
func (this *RPCClient) IPLibraryRPC() pb.IPLibraryServiceClient {
312284
return pb.NewIPLibraryServiceClient(this.pickConn())
313285
}

web/public/js/components/common/links.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
// 使用Icon的链接方式
22
Vue.component("link-icon", {
3-
props: ["href", "title", "target"],
3+
props: ["href", "title", "target", "size"],
44
data: function () {
5+
let realSize = this.size
6+
if (realSize == null || realSize.length == 0) {
7+
realSize = "small"
8+
}
9+
510
return {
6-
vTitle: (this.title == null) ? "打开链接" : this.title
11+
vTitle: (this.title == null) ? "打开链接" : this.title,
12+
realSize: realSize
713
}
814
},
9-
template: `<span><slot></slot>&nbsp;<a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify small"></i></a></span>`
15+
template: `<span><slot></slot>&nbsp;<a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify" :class="realSize"></i></a></span>`
1016
})
1117

1218
// 带有下划虚线的连接

0 commit comments

Comments
 (0)