@@ -4,6 +4,7 @@ import ( | |||||
"applet/app/db" | "applet/app/db" | ||||
"applet/app/e" | "applet/app/e" | ||||
"applet/app/md/member_center" | "applet/app/md/member_center" | ||||
svc2 "applet/app/svc" | |||||
svc "applet/app/svc/member_center" | svc "applet/app/svc/member_center" | ||||
"applet/app/utils" | "applet/app/utils" | ||||
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement" | "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" | ||||
@@ -107,7 +108,7 @@ func UserManagementGetUserList(c *gin.Context) { | |||||
list[i] = md.UserManagementGetUserListNode{ | list[i] = md.UserManagementGetUserListNode{ | ||||
ID: user.Id, | ID: user.Id, | ||||
Sex: user.Sex, | Sex: user.Sex, | ||||
Avatar: user.Avatar, | |||||
Avatar: svc2.GetOssUrl(user.Avatar), | |||||
Nickname: user.Nickname, | Nickname: user.Nickname, | ||||
Phone: user.Phone, | Phone: user.Phone, | ||||
IsRealName: user.IsRealName, | IsRealName: user.IsRealName, | ||||
@@ -72,7 +72,7 @@ func PushList(c *gin.Context) { | |||||
// @Accept json | // @Accept json | ||||
// @Produce json | // @Produce json | ||||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | // @param Authorization header string true "验证参数Bearer和token空格拼接" | ||||
// @Param req body md.NoticeSaveReq true "(分页信息必填)" | |||||
// @Param req body md.NoticePushSaveReq true "(分页信息必填)" | |||||
// @Success 200 {string} "具体数据" | // @Success 200 {string} "具体数据" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /api/notice/jPush/push/save [post] | // @Router /api/notice/jPush/push/save [post] | ||||
@@ -62,6 +62,7 @@ type NoticePushSaveReq struct { | |||||
SendStartTime string `json:"send_start_time"` | SendStartTime string `json:"send_start_time"` | ||||
SendEndTime string `json:"send_end_time"` | SendEndTime string `json:"send_end_time"` | ||||
UserList []string `json:"user_list"` | UserList []string `json:"user_list"` | ||||
TagList []string `json:"tag_list"` | |||||
Level string `json:"level"` | Level string `json:"level"` | ||||
} | } | ||||
@@ -114,5 +115,6 @@ type NoticeAliyunSmsPushSaveReq struct { | |||||
Content string `json:"content"` | Content string `json:"content"` | ||||
Target string `json:"target"` | Target string `json:"target"` | ||||
PhoneList []string `json:"phone_list"` | PhoneList []string `json:"phone_list"` | ||||
TagList []string `json:"tag_list"` | |||||
Level string `json:"level"` | Level string `json:"level"` | ||||
} | } |
@@ -129,11 +129,17 @@ func rNotice(r *gin.RouterGroup) { | |||||
rJpush := r.Group("/jPush") //极光 | rJpush := r.Group("/jPush") //极光 | ||||
{ | { | ||||
rJpush.POST("/push/list", notice.PushList) | rJpush.POST("/push/list", notice.PushList) | ||||
rJpush.POST("/getUserList", member_center.UserManagementGetUserList) | |||||
rJpush.GET("/getTagList", member_center.GetTagList) | |||||
rJpush.GET("/getLevelList", member_center.GetLevelList) | |||||
rJpush.POST("/push/save", notice.PushSave) | rJpush.POST("/push/save", notice.PushSave) | ||||
} | } | ||||
rAliyunSms := r.Group("/aliyunSms") //阿里云短信 | rAliyunSms := r.Group("/aliyunSms") //阿里云短信 | ||||
{ | { | ||||
rAliyunSms.POST("/file/phone", notice.AliyunSmsFilePhone) | rAliyunSms.POST("/file/phone", notice.AliyunSmsFilePhone) | ||||
rAliyunSms.POST("/getUserList", member_center.UserManagementGetUserList) | |||||
rAliyunSms.GET("/getTagList", member_center.GetTagList) | |||||
rAliyunSms.GET("/getLevelList", member_center.GetLevelList) | |||||
rAliyunSms.GET("/sale/base", notice.AliyunSmsSaleBase) | rAliyunSms.GET("/sale/base", notice.AliyunSmsSaleBase) | ||||
rAliyunSms.POST("/sale/save", notice.AliyunSmsSaleSave) | rAliyunSms.POST("/sale/save", notice.AliyunSmsSaleSave) | ||||
rAliyunSms.POST("/push/list", notice.AliyunSmsPushList) | rAliyunSms.POST("/push/list", notice.AliyunSmsPushList) | ||||
@@ -25,6 +25,8 @@ func FunctionList(c *gin.Context) { | |||||
{"name": "提现(激励视频)", "value": "incentive_withdraw"}, | {"name": "提现(激励视频)", "value": "incentive_withdraw"}, | ||||
{"name": "积分兑换(插屏)", "value": "interstitial_integralExchange"}, | {"name": "积分兑换(插屏)", "value": "interstitial_integralExchange"}, | ||||
{"name": "动态IM(信息流)", "value": "information_im"}, | {"name": "动态IM(信息流)", "value": "information_im"}, | ||||
{"name": "短视频(短视频)", "value": "short_video"}, | |||||
{"name": "短剧(短剧)", "value": "short_playlet"}, | |||||
} | } | ||||
NewAdvertisingSpaceDb := implement.NewAdvertisingSpaceDb(db.Db) | NewAdvertisingSpaceDb := implement.NewAdvertisingSpaceDb(db.Db) | ||||
adv, _, _ := NewAdvertisingSpaceDb.FindUserFeedbackCateAndTotal("1", "1000", "", "") | adv, _, _ := NewAdvertisingSpaceDb.FindUserFeedbackCateAndTotal("1", "1000", "", "") | ||||
@@ -24,6 +24,8 @@ func List(c *gin.Context) { | |||||
{"name": "激励视频", "value": "3"}, | {"name": "激励视频", "value": "3"}, | ||||
{"name": "信息流广告", "value": "4"}, | {"name": "信息流广告", "value": "4"}, | ||||
{"name": "全屏视频", "value": "5"}, | {"name": "全屏视频", "value": "5"}, | ||||
{"name": "短视频", "value": "6"}, | |||||
{"name": "短剧", "value": "7"}, | |||||
} | } | ||||
resp.SelectData = md.AdvertisingPlatform | resp.SelectData = md.AdvertisingPlatform | ||||
NewJpushNoticeDb := implement.NewAdvertisingSpaceDb(db.Db) | NewJpushNoticeDb := implement.NewAdvertisingSpaceDb(db.Db) | ||||
@@ -151,6 +151,8 @@ func AliyunSmsPushList(c *gin.Context) { | |||||
{"name": "全部会员", "value": "0"}, | {"name": "全部会员", "value": "0"}, | ||||
{"name": "指定会员", "value": "1"}, | {"name": "指定会员", "value": "1"}, | ||||
{"name": "指定等级", "value": "2"}, | {"name": "指定等级", "value": "2"}, | ||||
{"name": "指定标签", "value": "3"}, | |||||
{"name": "站外手机", "value": "4"}, | |||||
} | } | ||||
NewAliyunSmsRecordDb := implement.NewAliyunSmsRecordDb(db.Db) | NewAliyunSmsRecordDb := implement.NewAliyunSmsRecordDb(db.Db) | ||||
notice, total, _ := NewAliyunSmsRecordDb.FindAliyunSmsRecordAndTotal(req.Page, req.Limit, "") | notice, total, _ := NewAliyunSmsRecordDb.FindAliyunSmsRecordAndTotal(req.Page, req.Limit, "") | ||||
@@ -184,6 +186,7 @@ func AliyunSmsPushSave(c *gin.Context) { | |||||
Platform: "all", | Platform: "all", | ||||
Target: req.Target, | Target: req.Target, | ||||
Phone: utils.SerializeStr(req.PhoneList), | Phone: utils.SerializeStr(req.PhoneList), | ||||
TagId: utils.SerializeStr(req.TagList), | |||||
Level: utils.StrToInt(req.Level), | Level: utils.StrToInt(req.Level), | ||||
Title: req.Title, | Title: req.Title, | ||||
Content: req.Content, | Content: req.Content, | ||||
@@ -26,14 +26,13 @@ func List(c *gin.Context) { | |||||
{"name": "昵称", "value": "{昵称}"}, | {"name": "昵称", "value": "{昵称}"}, | ||||
{"name": "手机号", "value": "{手机号}"}, | {"name": "手机号", "value": "{手机号}"}, | ||||
{"name": "金额", "value": "{金额}"}, | {"name": "金额", "value": "{金额}"}, | ||||
{"name": "时间", "value": "{时间}"}, | |||||
{"name": "小时", "value": "{小时}"}, | {"name": "小时", "value": "{小时}"}, | ||||
{"name": "升级后等级", "value": "{升级后等级}"}, | {"name": "升级后等级", "value": "{升级后等级}"}, | ||||
} | } | ||||
resp.SelectData = []map[string]string{ | resp.SelectData = []map[string]string{ | ||||
{"name": "X小时未签到提醒", "value": "sign"}, | {"name": "X小时未签到提醒", "value": "sign"}, | ||||
{"name": "提现到账提醒", "value": "withdraw"}, | |||||
{"name": "X小时未登录提醒", "value": "login"}, | {"name": "X小时未登录提醒", "value": "login"}, | ||||
{"name": "提现到账提醒", "value": "withdraw"}, | |||||
{"name": "升级提醒", "value": "update"}, | {"name": "升级提醒", "value": "update"}, | ||||
} | } | ||||
if notice != nil { | if notice != nil { | ||||
@@ -113,6 +112,7 @@ func PushList(c *gin.Context) { | |||||
{"name": "全部会员", "value": "0"}, | {"name": "全部会员", "value": "0"}, | ||||
{"name": "指定会员", "value": "1"}, | {"name": "指定会员", "value": "1"}, | ||||
{"name": "指定等级", "value": "2"}, | {"name": "指定等级", "value": "2"}, | ||||
{"name": "指定标签", "value": "3"}, | |||||
} | } | ||||
NewJpushRecordDb := implement.NewJpushRecordDb(db.Db) | NewJpushRecordDb := implement.NewJpushRecordDb(db.Db) | ||||
notice, total, _ := NewJpushRecordDb.FindJpushRecordAndTotal(req.Page, req.Limit, "") | notice, total, _ := NewJpushRecordDb.FindJpushRecordAndTotal(req.Page, req.Limit, "") | ||||
@@ -153,6 +153,7 @@ func PushSave(c *gin.Context) { | |||||
Platform: req.Platform, | Platform: req.Platform, | ||||
Target: req.Target, | Target: req.Target, | ||||
UserId: utils.SerializeStr(req.UserList), | UserId: utils.SerializeStr(req.UserList), | ||||
TagId: utils.SerializeStr(req.TagList), | |||||
Level: utils.StrToInt(req.Level), | Level: utils.StrToInt(req.Level), | ||||
Title: req.Title, | Title: req.Title, | ||||
Content: req.Content, | Content: req.Content, | ||||
@@ -965,7 +965,7 @@ const docTemplate = `{ | |||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | "schema": { | ||||
"$ref": "#/definitions/md.ArticleDelReq" | |||||
"$ref": "#/definitions/md.CloudBundleDelReq" | |||||
} | } | ||||
} | } | ||||
], | ], | ||||
@@ -6637,7 +6637,7 @@ const docTemplate = `{ | |||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | "schema": { | ||||
"$ref": "#/definitions/md.NoticeSaveReq" | |||||
"$ref": "#/definitions/md.NoticePushSaveReq" | |||||
} | } | ||||
} | } | ||||
], | ], | ||||
@@ -8670,6 +8670,17 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.CloudBundleDelReq": { | |||||
"type": "object", | |||||
"properties": { | |||||
"ids": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
} | |||||
}, | |||||
"md.CloudBundleImgResp": { | "md.CloudBundleImgResp": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -11505,6 +11516,50 @@ const docTemplate = `{ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.NoticePushSaveReq": { | |||||
"type": "object", | |||||
"properties": { | |||||
"content": { | |||||
"type": "string" | |||||
}, | |||||
"id": { | |||||
"type": "string" | |||||
}, | |||||
"level": { | |||||
"type": "string" | |||||
}, | |||||
"platform": { | |||||
"type": "string" | |||||
}, | |||||
"send_end_time": { | |||||
"type": "string" | |||||
}, | |||||
"send_start_time": { | |||||
"type": "string" | |||||
}, | |||||
"send_type": { | |||||
"type": "string" | |||||
}, | |||||
"tag_list": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
}, | |||||
"target": { | |||||
"type": "string" | |||||
}, | |||||
"title": { | |||||
"type": "string" | |||||
}, | |||||
"user_list": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
} | |||||
}, | |||||
"md.NoticeSaveReq": { | "md.NoticeSaveReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -957,7 +957,7 @@ | |||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | "schema": { | ||||
"$ref": "#/definitions/md.ArticleDelReq" | |||||
"$ref": "#/definitions/md.CloudBundleDelReq" | |||||
} | } | ||||
} | } | ||||
], | ], | ||||
@@ -6629,7 +6629,7 @@ | |||||
"in": "body", | "in": "body", | ||||
"required": true, | "required": true, | ||||
"schema": { | "schema": { | ||||
"$ref": "#/definitions/md.NoticeSaveReq" | |||||
"$ref": "#/definitions/md.NoticePushSaveReq" | |||||
} | } | ||||
} | } | ||||
], | ], | ||||
@@ -8662,6 +8662,17 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.CloudBundleDelReq": { | |||||
"type": "object", | |||||
"properties": { | |||||
"ids": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
} | |||||
}, | |||||
"md.CloudBundleImgResp": { | "md.CloudBundleImgResp": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -11497,6 +11508,50 @@ | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
"md.NoticePushSaveReq": { | |||||
"type": "object", | |||||
"properties": { | |||||
"content": { | |||||
"type": "string" | |||||
}, | |||||
"id": { | |||||
"type": "string" | |||||
}, | |||||
"level": { | |||||
"type": "string" | |||||
}, | |||||
"platform": { | |||||
"type": "string" | |||||
}, | |||||
"send_end_time": { | |||||
"type": "string" | |||||
}, | |||||
"send_start_time": { | |||||
"type": "string" | |||||
}, | |||||
"send_type": { | |||||
"type": "string" | |||||
}, | |||||
"tag_list": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
}, | |||||
"target": { | |||||
"type": "string" | |||||
}, | |||||
"title": { | |||||
"type": "string" | |||||
}, | |||||
"user_list": { | |||||
"type": "array", | |||||
"items": { | |||||
"type": "string" | |||||
} | |||||
} | |||||
} | |||||
}, | |||||
"md.NoticeSaveReq": { | "md.NoticeSaveReq": { | ||||
"type": "object", | "type": "object", | ||||
"properties": { | "properties": { | ||||
@@ -956,6 +956,13 @@ definitions: | |||||
version: | version: | ||||
type: string | type: string | ||||
type: object | type: object | ||||
md.CloudBundleDelReq: | |||||
properties: | |||||
ids: | |||||
items: | |||||
type: string | |||||
type: array | |||||
type: object | |||||
md.CloudBundleImgResp: | md.CloudBundleImgResp: | ||||
properties: | properties: | ||||
android_logo: | android_logo: | ||||
@@ -2922,6 +2929,35 @@ definitions: | |||||
total: | total: | ||||
type: integer | type: integer | ||||
type: object | type: object | ||||
md.NoticePushSaveReq: | |||||
properties: | |||||
content: | |||||
type: string | |||||
id: | |||||
type: string | |||||
level: | |||||
type: string | |||||
platform: | |||||
type: string | |||||
send_end_time: | |||||
type: string | |||||
send_start_time: | |||||
type: string | |||||
send_type: | |||||
type: string | |||||
tag_list: | |||||
items: | |||||
type: string | |||||
type: array | |||||
target: | |||||
type: string | |||||
title: | |||||
type: string | |||||
user_list: | |||||
items: | |||||
type: string | |||||
type: array | |||||
type: object | |||||
md.NoticeSaveReq: | md.NoticeSaveReq: | ||||
properties: | properties: | ||||
content: | content: | ||||
@@ -5314,7 +5350,7 @@ paths: | |||||
name: req | name: req | ||||
required: true | required: true | ||||
schema: | schema: | ||||
$ref: '#/definitions/md.ArticleDelReq' | |||||
$ref: '#/definitions/md.CloudBundleDelReq' | |||||
produces: | produces: | ||||
- application/json | - application/json | ||||
responses: | responses: | ||||
@@ -9063,7 +9099,7 @@ paths: | |||||
name: req | name: req | ||||
required: true | required: true | ||||
schema: | schema: | ||||
$ref: '#/definitions/md.NoticeSaveReq' | |||||
$ref: '#/definitions/md.NoticePushSaveReq' | |||||
produces: | produces: | ||||
- application/json | - application/json | ||||
responses: | responses: | ||||
@@ -33,7 +33,7 @@ require ( | |||||
) | ) | ||||
require ( | require ( | ||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241204091019-14b93d36ac8e | |||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241205055206-f02789cb9cac | |||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241203080408-75cfef2c6334 | code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241203080408-75cfef2c6334 | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||