|
@@ -18,7 +18,7 @@ type customMsg struct {
|
|
|
Content string `form:"content"` //内容
|
|
|
Link string `form:"link"` //链接
|
|
|
SendMode int `form:"sendMode"` //发送时效 发送模式 1- 定时 2-实时
|
|
|
- SendTime string `form:"sendTime"` // 发送时间
|
|
|
+ SendTime string `form:"sendTime"` //发送时间
|
|
|
AndroidUrl string `form:"androidUrl"` //安卓连接
|
|
|
IosUrl string `form:"iosUrl"` //ios连接
|
|
|
WeChatUrl string `form:"weChatUrl"` //微信连接
|
|
@@ -28,6 +28,7 @@ type customMsg struct {
|
|
|
TemplateName string `form:"templateName"` //模板名称 - 自定义消息
|
|
|
}
|
|
|
|
|
|
+// CustomSendMsg 自定义发送消息
|
|
|
func CustomSendMsg(context *admin.Context) (interface{}, error) {
|
|
|
param := &customMsg{}
|
|
|
err := context.Form(param)
|
|
@@ -47,6 +48,7 @@ func CustomSendMsg(context *admin.Context) (interface{}, error) {
|
|
|
}, err
|
|
|
}
|
|
|
|
|
|
+// MyCustomerList 自定义发送消息中我的客户列表
|
|
|
func MyCustomerList(context *admin.Context) (interface{}, error) {
|
|
|
param := new(struct {
|
|
|
State string `form:"state"` //客户状态
|
|
@@ -69,6 +71,7 @@ func MyCustomerList(context *admin.Context) (interface{}, error) {
|
|
|
}, nil
|
|
|
}
|
|
|
|
|
|
+// SingleAdd 逐一添加
|
|
|
func SingleAdd(context *admin.Context) (interface{}, error) {
|
|
|
param := new(struct {
|
|
|
UserId string `form:"userId"`
|