小程序首页数据接口
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.czg.market.service;
|
||||
|
||||
import com.czg.market.vo.UserHomeDataVo;
|
||||
|
||||
/**
|
||||
* @author yjjie
|
||||
* @date 2025/12/11 11:22
|
||||
*/
|
||||
public interface UserHomeService {
|
||||
/**
|
||||
* 获取用户首页数据
|
||||
*/
|
||||
UserHomeDataVo getUserHomeData(Long userId, Long shopId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.czg.market.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @author yjjie
|
||||
* @date 2025/12/11 11:23
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class UserHomeDataVo {
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 用户Id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String userNickname;
|
||||
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
* 优惠券数量
|
||||
*/
|
||||
private Long couponNum;
|
||||
|
||||
/**
|
||||
* 积分数量
|
||||
*/
|
||||
private Long pointNum;
|
||||
|
||||
/**
|
||||
* 是否开启外卖
|
||||
*/
|
||||
private Integer takeout;
|
||||
|
||||
/**
|
||||
* 是否开启拼团
|
||||
*/
|
||||
private Integer group;
|
||||
|
||||
/**
|
||||
* 是否开启积分商城
|
||||
*/
|
||||
private Integer pointsMall;
|
||||
|
||||
/**
|
||||
* 是否开启分销
|
||||
*/
|
||||
private Integer distribution;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user