This commit is contained in:
suyl
2021-04-26 17:45:23 +08:00
parent f1eddbb839
commit 14f3c29c04
6 changed files with 21 additions and 7 deletions

View File

@@ -571,13 +571,14 @@ func (c *JobController) GetUnionActList() {
// @Param token header string true "认证token"
// @Param jobID formData int false "任务ID"
// @Param shareType formData int true "分享类型1为当前用户分享给别人2为当前用户自己领取"
// @Param resourceType formData int false "资源类型"
// @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.ShareType, params.LinkType)
retVal, err = cms.ShareUnionLink(params.Ctx, params.JobID, params.ShareType, params.LinkType, params.ResourceType)
return retVal, "", err
})
}