Browse Source

增加用户ID

master v0.1.7
lijianbin 3 years ago
parent
commit
d9c17cd6a5
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      client.go
  2. +1
    -0
      common.go

+ 2
- 1
client.go View File

@ -72,7 +72,7 @@ func SendMsg(site_id, dbname, business_id, domainname, msg_type, order_sn, memo
} }
// target_type:目标类型,商品或文章 target_id:目标ID // target_type:目标类型,商品或文章 target_id:目标ID
func SendNotcie(site_id, dbname, domain, manager_id, target_type, target_id string, template_Data map[string]string, url ...string) (bool, error) {
func SendNotcie(site_id, dbname, domain, user_id, manager_id, target_type, target_id string, template_Data map[string]string, url ...string) (bool, error) {
if dbname == "" || dbname == "" || manager_id == "" { if dbname == "" || dbname == "" || manager_id == "" {
return false, errors.New("参数错误") return false, errors.New("参数错误")
} }
@ -88,6 +88,7 @@ func SendNotcie(site_id, dbname, domain, manager_id, target_type, target_id stri
arg.SiteId = site_id arg.SiteId = site_id
arg.Dbname = dbname arg.Dbname = dbname
arg.Domain = domain arg.Domain = domain
arg.UserId = user_id
arg.ManagerId = manager_id arg.ManagerId = manager_id
arg.TargetType = target_type arg.TargetType = target_type
arg.TargetId = target_id arg.TargetId = target_id


+ 1
- 0
common.go View File

@ -25,6 +25,7 @@ type MsgSend struct {
type NoticeSend struct { type NoticeSend struct {
Req Req
Domain string Domain string
UserId string
ManagerId string ManagerId string
TargetType string TargetType string
TargetId string TargetId string


Loading…
Cancel
Save