This commit is contained in:
suyl
2021-04-22 16:41:21 +08:00
parent b2c03d6956
commit 910e83ea4b
5 changed files with 40 additions and 28 deletions

View File

@@ -569,14 +569,15 @@ func (c *JobController) GetUnionActList() {
// @Title 分享联盟链接
// @Description 分享联盟链接
// @Param token header string true "认证token"
// @Param jobID formData int true "任务ID"
// @Param linkType formData int true "链接类型1为小程序2为H5"
// @Param jobID formData int false "任务ID"
// @Param shareType formData int true "分享类型1为当前用户分享给别人2为当前用户自己领取"
// @Param linkType formData int true "链接类型1 h5链接 2 deeplink(唤起)链接 3 中间页唤起链接 4 微信小程序唤起路径, 5为小程序二维码"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ShareUnionLink [post]
func (c *JobController) ShareUnionLink() {
c.callShareUnionLink(func(params *tJobShareUnionLinkParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.ShareUnionLink(params.Ctx, params.JobID, params.LinkType)
retVal, err = cms.ShareUnionLink(params.Ctx, params.JobID, params.ShareType, params.LinkType)
return retVal, "", err
})
}