package com.caimei.service.auth; import com.caimei.annotation.CurrentUser; import com.caimei.model.ResponseJson; import com.caimei.model.po.CmBrandAuthPo; import com.caimei.model.po.SysUser; import com.caimei.model.vo.*; import com.github.pagehelper.PageInfo; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; /** * Description * * @author : Aslee * @date : 2021/5/11 */ public interface AuthService { /** * 授权列表 * * @param listType 列表类型:1授权列表,2授权审核列表 * @param authUserId 供应商用户id * @param authParty 授权机构 * @param mobile * @param status 上线状态:0已下线,1已上线,2待上线 * @param starFlag 明星机构标识:0不是,1是 * @param lowerAuditStatus 商品信息审核状态:0未完成审核,1已完成审核 * @param shopAuditStatus 供应商审核状态:0审核未通过,1审核通过,2待审核 * @param pageNum 第几页 * @param pageSize 一页多少条 * @param auditStatus 审核状态:0审核未通过,1审核通过,2待审核 * @return AuthVo */ ResponseJson> getAuthList(Integer listType, Integer authUserId, String authParty, String mobile, Integer status, Integer starFlag, Integer auditStatus, Integer lowerAuditStatus, Integer shopAuditStatus, Integer sendStatus,String authCode ,Integer pageNum, Integer pageSize); ResponseJson> getAuthListAll(Integer listType, Integer authUserId, String authParty, String mobile, Integer status, Integer starFlag, Integer auditStatus, Integer lowerAuditStatus, Integer shopAuditStatus, Integer sendStatus, String name,String snCode,Integer pageNum, Integer pageSize); /** * 更新授权状态 * * @param authId 授权id * @param status 授权状态:0停用 1启用 * @return ResponseJson */ ResponseJson updateAuthStatus(Integer authId, Integer status); /** * 删除授权 * @param authId 授权id * @return ResponseJson */ ResponseJson deleteAuth(Integer authId); /** * 添加/编辑授权 * * @param auth 授权机构 * @param bannerList 轮播图列表 * @param source 来源:1供应商保存,2机构保存 * @return ResponseJson */ ResponseJson saveAuth(CmBrandAuthPo auth, List bannerList, boolean importFlag, Integer source); /** * 审核品牌授权 * * @param authId 授权id * @param auditStatus 审核状态 * @param invalidReason 审核不通过原因 * @param auditBy 审核人用户id * @param source * @return ResponseJson */ ResponseJson auditAuth(Integer authId, Integer auditStatus, String invalidReason, Integer auditBy, Integer source); /** * 导入excel中的授权机构和商品数据 * @param file excel表格 * @param authUserId 供应商用户id * @param createBy * @return */ ResponseJson importDataByExcel(MultipartFile file, Integer authUserId, Integer createBy); /** * 授权机构回显数据 * @param authId 机构id * @return */ ResponseJson getAuthFormData(Integer authId); /** * 机构下拉框列表 */ ResponseJson> getAuthSelectList(Integer authUserId); /** * ldm门店图/备注导入 * @param authUserId * @return */ ResponseJson importLdmImage(Integer authUserId); /** * 生成机构授权牌 * @param auth * @return */ String generateAuthImage(TemplateVo authTemplate, CmBrandAuthPo auth); /** * 添加水印 */ String addWaterMark(String image,Integer type); /** * 更改查看标记 * @param authId * @return */ ResponseJson checkAuth(Integer authId); /** * 更改明星标识 */ ResponseJson starAuth(Integer authId, Integer starFlag,String starNum); /** * 获取机构关联的机构信息 * 1.7.4版本:编辑时新加关联机构操作 * */ ResponseJson> getRelationgInfo(String snCode, Integer authUserId); /** * 获取可绑定机构机构信息 * **/ ResponseJson> getClubBindAuth(Integer authUserId); /** * 用户扫码授权,获取code值 * @param response * @return * @throws IOException */ ResponseJson getDouYingCode(HttpServletResponse response) throws IOException; /** * 根据用户的code值获取AcessToken * ccode 用户授权登录code **/ ResponseJson getDouYingAcessToken(String ccode) throws IOException; /** * h5的方式上传视频 * @return * @throws IOException */ ResponseJson getclientToken(String title,String videoPath,Integer authId) throws IOException; /** * 保存视频信息 * @return */ ResponseJson saveVideoInfo(ChallengeRoundVo challengeRoundVo); /** * 1.7.7(ROSS)保存视频信息 * @return */ ResponseJson saveVideo(RossChallengeVideo rossChallengeVideo); /** * 根据authid获取authUserId */ boolean getauthUserId(Integer authId); /** * 判断是否存在userName * @param userName * @return */ boolean getuserName(String userName); /** * 验证是否在活动时间内 * @return */ boolean checkActivityTime(String releaseTime); /** * 获取已发布视频(前端) * @param clubUserName * @param status * @param cursor * @param count * @return */ ResponseJson> getPublishedVideoList(String clubUserName,Integer status,Integer cursor,Integer count,Integer pageNum,Integer pageSize,Integer authUserId); /** * 获取已发布视频(后端) * @param mobile * @param authParty * @param status * @param cursor * @param count * @param authUserId * @return */ ResponseJson> getPublishedVideo(String mobile,String authParty,Integer status,Integer cursor,Integer count,Integer authUserId,Integer pageNum,Integer pageSize,String startTIme,String endTime); /** * 获取机构已发布视频的机构下拉列表 * @param authUserId * @return */ ResponseJson> getAuthPartylist(Integer authUserId); /** * 保存活动信息 * @param startTime * @param endTime * @param status * @return */ ResponseJson saveActivityTime(String startTime,String endTime,Integer status,Integer authUserId); /** * 获取活动信息 * @return */ ResponseJson getActivityTime(Integer authUserId); /** * 判断shareId是否存在 * @param shareId * @return */ boolean getShareId(String shareId); /** * 根据ShareId保存itemId (webhook触发时调用) * @param shareId * @param itemId */ void savaItemIdByShareId(String shareId,String itemId); /** * 判断活动开启状态 * @param sysUser * @return */ ResponseJson getActivitty(Integer sysUser); /** * 根据authId获取手机号 * @param authId * @return */ String getMobileByAuthId(Integer authId); /** * 根据authId获取供应商名称 * @param authId * @return */ String getAuthUserName(Integer authId); /** * 获取发布时间 * @param userName * @return */ String getReleaseTime(String userName); /** * 保存抖音口令 */ void savaDyCommand(Integer authId,String content); /** * 根据authId获取ossName * @param videoID * @return */ String getOssNameAuthId(Integer videoID); /** * 删除视频 * @param videoID */ void deleteVideoByAuthId(Integer videoID); /** * 下载视频 * @param fileId * @param response * @return */ ResponseJson downLoadChoseZip(String fileId,HttpServletResponse response); /** * 根据id获取信息 * */ ResponseJson getInfoById(Integer videoId); ResponseJson getDyVidoInfo(Integer authUserId); /** * 新增参赛机构信息 * @param rossChallengeRoundVo * @return */ ResponseJson saveRossInfo(RossChallengeRoundVo rossChallengeRoundVo); /** * 根据手机号码获取信息 * @param userName * @return */ List getInfoByUserName(String userName); /** * 验证用户是否已经报名 * @param mobile * @return */ ResponseJson checkContestedInfo(String mobile); /** * 获取已报名信息列表 * @return */ ResponseJson> getcontestedInfo(); /** * 查询视频列表 * @param mobileOrAuthpart 电话号码或者机构名称 * @return */ ResponseJson> getVideoAll(String mobileOrAuthpart,Integer clubUserId); /** * 根据手机号码查询该机构视频列表 * @param mobile 登录账号 * @return */ ResponseJson> getVideoByUsername(String mobile,Integer clubUserId); /** * 验证机构是否已经上传了3个视频 * @param mobile 登录账号 * @return */ ResponseJson> checkVideoByUsername(String mobile); /** * 点赞与取消点赞 * @param id * @param diggFlag * @return */ ResponseJson upVideoDiggCount(Integer id,Integer diggFlag,Integer clubUserId,String clubUserIds); /** * 查询机构信息(后端) * @param mobile * @return */ ResponseJson> getAuthInfo(String mobile); /** * 根据id删除机构信息 * @param id * @return */ ResponseJson delAuthInfoById(Integer id); /** * 根据id删除视频信息 * @param id * @return */ ResponseJson delVideoInfoById(Integer id); }