7 changed files with 78 additions and 7 deletions
@ -1,7 +1,12 @@ |
|||
package cc.hiver.mall.shoprelations.mapper; |
|||
|
|||
import cc.hiver.mall.shoprelations.entity.ShopRelations; |
|||
import cc.hiver.mall.shoprelations.vo.ShopRelationsVo; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface ShopRelationsMapper extends BaseMapper<ShopRelations> { |
|||
List<ShopRelationsVo> getShopRelations(@Param("shopId") String shopId); |
|||
} |
|||
|
|||
@ -1,7 +1,12 @@ |
|||
package cc.hiver.mall.shoprelations.service; |
|||
|
|||
import cc.hiver.mall.shoprelations.entity.ShopRelations; |
|||
import cc.hiver.mall.shoprelations.vo.ShopRelationsVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface ShopRelationsService { |
|||
void addShopRelations(ShopRelations shopRelations); |
|||
|
|||
List<ShopRelationsVo> getShopRelations(String shopId); |
|||
} |
|||
|
|||
@ -0,0 +1,16 @@ |
|||
package cc.hiver.mall.shoprelations.vo; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
public class ShopRelationsVo { |
|||
|
|||
@ApiModelProperty(value = "关联id") |
|||
private String id; |
|||
|
|||
@ApiModelProperty(value = "关联店铺名称") |
|||
private String shopName; |
|||
|
|||
@ApiModelProperty(value = "被关联店铺id") |
|||
private String shopId; |
|||
|
|||
} |
|||
Loading…
Reference in new issue