123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- 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<PageInfo<AuthVo>> 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<PageInfo<AuthVo>> 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<String> 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<AuthFormVo> getAuthFormData(Integer authId);
- /**
- * 机构下拉框列表
- */
- ResponseJson<List<AuthVo>> 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<List<AuthFormVo>> getRelationgInfo(String snCode, Integer authUserId);
- /**
- * 获取可绑定机构机构信息
- * **/
- ResponseJson<List<AuthFormVo>> 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<PageInfo<ChallengeRoundVo>> 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<PageInfo<ChallengeRoundVo>> 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<List<ChallengeRoundVo>> getAuthPartylist(Integer authUserId);
- /**
- * 保存活动信息
- * @param startTime
- * @param endTime
- * @param status
- * @return
- */
- ResponseJson saveActivityTime(String startTime,String endTime,Integer status,Integer authUserId);
- /**
- * 获取活动信息
- * @return
- */
- ResponseJson<ChallengeActivityVo> 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<ChallengeActivityVo> 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<ChallengeRoundVo> getInfoById(Integer videoId);
- ResponseJson getDyVidoInfo(Integer authUserId);
- /**
- * 新增参赛机构信息
- * @param rossChallengeRoundVo
- * @return
- */
- ResponseJson saveRossInfo(RossChallengeRoundVo rossChallengeRoundVo);
- /**
- * 根据手机号码获取信息
- * @param userName
- * @return
- */
- List<RossChallengeRoundVo> getInfoByUserName(String userName);
- /**
- * 验证用户是否已经报名
- * @param mobile
- * @return
- */
- ResponseJson<RossChallengeRoundVo> checkContestedInfo(String mobile);
- /**
- * 获取已报名信息列表
- * @return
- */
- ResponseJson<List<RossChallengeRoundVo>> getcontestedInfo();
- /**
- * 查询视频列表
- * @param mobileOrAuthpart 电话号码或者机构名称
- * @return
- */
- ResponseJson<List<RossChallengeVideo>> getVideoAll(String mobileOrAuthpart,Integer clubUserId);
- /**
- * 根据手机号码查询该机构视频列表
- * @param mobile 登录账号
- * @return
- */
- ResponseJson<List<RossChallengeVideo>> getVideoByUsername(String mobile,Integer clubUserId);
- /**
- * 验证机构是否已经上传了3个视频
- * @param mobile 登录账号
- * @return
- */
- ResponseJson<List<RossChallengeVideo>> checkVideoByUsername(String mobile);
- /**
- * 点赞与取消点赞
- * @param id
- * @param diggFlag
- * @return
- */
- ResponseJson upVideoDiggCount(Integer id,Integer diggFlag,Integer clubUserId,String clubUserIds);
- /**
- * 查询机构信息(后端)
- * @param mobile
- * @return
- */
- ResponseJson<List<RossChallengeRoundVo>> getAuthInfo(String mobile);
- /**
- * 根据id删除机构信息
- * @param id
- * @return
- */
- ResponseJson delAuthInfoById(Integer id);
- /**
- * 根据id删除视频信息
- * @param id
- * @return
- */
- ResponseJson delVideoInfoById(Integer id);
- }
|