Commit f8d8819c by songyinghui

feature: 导购端账号授权

parent 5e369b3e
package com.gic.haoban.manage.web.controller.content;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.manage.web.qo.content.account.AccountGenerateQrCodeQo;
import com.gic.haoban.manage.web.qo.content.account.AccountInfoQo;
import com.gic.haoban.manage.web.qo.content.account.AccountScanResultQo;
import com.gic.haoban.manage.web.vo.content.account.AccountAuthorizeResultVo;
import com.gic.haoban.manage.web.vo.content.account.AccountAuthorizeVo;
import com.gic.haoban.manage.web.vo.content.account.ContentAccountInfoVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 好办-视频号-授权
* @Author MUSI
* @Date 2023/10/29 9:33 PM
* @Description
* @Version
**/
@RestController
@RequestMapping(path = "/content/account")
public class ContentAccountController {
/**
* 查询导购当前账号视频号列表
* @param accountInfoQo
* @return
*/
@RequestMapping(path = "/list")
private RestResponse<List<ContentAccountInfoVo>> queryAccountList(AccountInfoQo accountInfoQo) {
return RestResponse.successResult();
}
/**
* 获取登陆/授权二维码
* @param accountGenerateQrCodeQo
* @return
*/
@ResponseBody
@RequestMapping(value = "/generate/qrcode")
public RestResponse<AccountAuthorizeVo> generateQrCode(AccountGenerateQrCodeQo accountGenerateQrCodeQo) {
return RestResponse.successResult();
}
/**
* 二维码轮询结果
* @param accountScanResultQo
* @return
*/
@ResponseBody
@RequestMapping(value = "/loop/query/scan/qrcode/result")
public RestResponse<AccountAuthorizeResultVo> queryScanQrCodeResult(AccountScanResultQo accountScanResultQo) {
return RestResponse.successResult();
}
}
package com.gic.haoban.manage.web.qo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/24 2:06 PM
* @Description
* @Version
**/
public class AccountGenerateQrCodeQo implements Serializable {
/**
* 企业id
*/
private String enterpriseId;
/**
* 账号id
*/
private String accountId;
/**
* 导购id
*/
private String clerkId;
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
}
package com.gic.haoban.manage.web.qo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/29 9:36 PM
* @Description
* @Version
**/
public class AccountInfoQo implements Serializable {
private static final long serialVersionUID = 6064200327738361949L;
private String enterpriseId;
/**
* 导购id
*/
private String clerkId;
/**
* 门店id
*/
private String storeId;
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
}
package com.gic.haoban.manage.web.qo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/27 4:54 PM
* @Description
* @Version
**/
public class AccountScanResultQo implements Serializable {
private String key;
/**
* 当前二维码授权状态
* -1 未授权
* 0 扫码成功
* 1 扫码失败
* 2 授权码已过期
* 3 授权完成
*/
private String status;
/**
*
*/
private String enterpriseId;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
}
package com.gic.haoban.manage.web.vo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/24 2:11 PM
* @Description
* @Version
* 账号授权结果
*
**/
public class AccountAuthorizeResultVo implements Serializable {
private String key;
/**
* -1 未授权
* 0 扫码成功
* 1 扫码失败
* 2 授权码已过期
* 3 授权完成
*/
private Integer status;
/**
* 账号主键id
*/
private Long id;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
package com.gic.haoban.manage.web.vo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/24 2:09 PM
* @Description
* @Version
**/
public class AccountAuthorizeVo implements Serializable {
/**
* 后续轮询时以此key为参数
*/
private String key;
/**
* 二维码图片的base64格式
*/
private String qrCode;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getQrCode() {
return qrCode;
}
public void setQrCode(String qrCode) {
this.qrCode = qrCode;
}
}
package com.gic.haoban.manage.web.vo.content.account;
import java.io.Serializable;
/**
* @Author MUSI
* @Date 2023/10/29 9:35 PM
* @Description
* @Version
**/
public class ContentAccountInfoVo implements Serializable {
private static final long serialVersionUID = -3355601918337775024L;
/**
* 账号名称
*/
private String accountName;
/**
* 账号id
*/
private String accountId;
/**
* 账号头像
*/
private String accountImageUrl;
public String getAccountName() {
return accountName;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public String getAccountImageUrl() {
return accountImageUrl;
}
public void setAccountImageUrl(String accountImageUrl) {
this.accountImageUrl = accountImageUrl;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment