17 Commits
Author SHA1 Message Date
rainzm 15c506086d feat(notify): be compatible with mobile in event notify 2021-02-18 11:45:15 +08:00
rainzm 755e00750a feat: support EventNotify 2021-02-18 11:45:15 +08:00
rainzm bdb6df6e4d feat(notify): support international mobile 2021-01-22 20:04:15 +08:00
rainzm ebc32e693d feat(notify): send notifications of different templates according to language 2021-01-11 19:43:18 +08:00
rainzm 4135b3729b fix(notify): return the result of the second attempt to execute the rpc call 2020-12-01 14:35:04 +08:00
rainzm 1517ed79f2 fix(notify): pull contact for workwx, dingtalk and feishu 2020-09-10 14:33:09 +08:00
rainzm bf12f5b57c feat(notify): break down error from UseridByMobile 2020-09-03 15:08:13 +08:00
Rain Zheng 853153c739 Refactor for Notify (#7611)
* refactor(notify): ALL

* feat(climc): Notify v2

* feat: support notify for codegen.py

* delete deprecated code and Maintain SDK compatibility

* Adjust the template for mail validation to support captcha

* fix: The issue of notify refactoring

* add copyright for notifyv2 cli

* Adjust according to the advice of make check

* Remove utils package in notify

* fix import format

* remove redundant Template module

* fix validateCreate and validateUpdate of notifytemplate

* fix update issues of receivers

* fix: Add SetStageComplete in tasks
2020-08-25 17:19:02 +08:00
Rain e1c63729d9 fix/notify: Add deadline for rpc client 2020-04-27 10:41:45 +08:00
Rain f876aed69f feature(notify): Add query and return value for contact UPDATE interface
1. Add same return value with contact GET interface when updating
2. Add pull params for query to pull subcontact by mobile number.
   For example, pull user_id from dingtalk throught user's mobile
   number.
3. Add corresponding feature based on above for climc.
4. UserCache will try FetchByName if there is no id matched user when
   fetching users from KeyStone.
2020-03-05 17:01:29 +08:00
Rain a81004254f feature(notify): Validate config 2020-02-24 14:09:18 +08:00
Rain 1cc8dacfa6 bugfix(notify): Fix the bug of notify config and verify
1. 优化了报错信息
2. 将验证信息的发送由异步改成了同步,这样前端可以方便的展示验证消息发送失败的原因
3. 主动初始化webconsole的配置信息,使得websocket能够马上正常工作
4. 修复了验证信息发送失败之后联系方式状态不正确的bug
5. 去掉有关email回调地址的api
6. 修复了 update config 首次不起作用的 bug
2019-12-18 19:01:25 +08:00
Rain 59a7b155a3 fix(notify): Fix the bugs of user cache and some api's params 2019-12-17 17:18:22 +08:00
Rain 2222c7779c feat(notify): Available uname in api & Unified template management
1. Uname is availbale now in api via adding "uname=true" in query.
So we can use uname in climc which is much more visual and use uid in
web client which avoid time-consuming remote calls that may occur.

2. Previously, the template for the message was managed by the
individual sending components. Now, these templats was managed uniformly
by Notify Service so that we can easily add and remove.

3. Now, failure to send a validation message will trigger a notification
to the user via websocket.
2019-12-14 16:49:26 +08:00
Yousong Zhou 8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Qiu Jian 7e02839d67 add doc and copyright 2019-10-16 14:08:57 +08:00
Rain dc68d23ff6 support Secondary authority management for contact and notification
rpc=>grpc, go=>workerMan

pull dingtalk auto

grpc
2019-09-24 15:33:53 +08:00