Ejemplo n.º 1
0
 public int GetCountByUserId(int userid)
 {
     return(ShopCommentDAL.GetCountByUserId(userid));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取总数
 /// </summary>
 /// <param name="shopid">店铺ID</param>
 /// <returns></returns>
 public int GetCountByShopId(int shopid, int checkstatus)
 {
     return(ShopCommentDAL.GetCountByShopId(shopid, checkstatus));
 }
Ejemplo n.º 3
0
 public int GetCountByShopId(int shopid)
 {
     return(ShopCommentDAL.GetCountByShopId(shopid, 2));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 修改审核状态
 /// </summary>
 /// <param name="id"></param>
 /// <param name="checkstatus"></param>
 /// <returns></returns>
 public int UpdateShopComment(int id, int checkstatus)
 {
     return(ShopCommentDAL.UpdateShopComment(id, checkstatus));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id">id</param>
 /// <returns></returns>
 public int DeleteShopComment(int id)
 {
     return(ShopCommentDAL.DeleteShopComment(id));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 public int AddShopComment(ShopComment item)
 {
     return(ShopCommentDAL.AddShopComment(item));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 获取实体对象
 /// </summary>
 /// <param name="id">id</param>
 /// <returns>item</returns>
 public ShopComment GetShopComment(int id)
 {
     return(ShopCommentDAL.GetShopComment(id));
 }
Ejemplo n.º 8
0
 public List <ShopComment> GetShopCommentsByShopId(int pageindex, int pagesize, int shopid)
 {
     return(ShopCommentDAL.GetShopCommentsByShopId(pageindex, pagesize, shopid, 0));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 获取店铺评论列表
 /// </summary>
 /// <param name="pageindex">当前页数</param>
 /// <param name="pagesize">分页大小</param>
 /// <param name="shopid">店铺ID</param>
 /// <returns>List</returns>
 public List <ShopComment> GetShopCommentsByShopId(int pageindex, int pagesize, int shopid, int checkstatus)
 {
     return(ShopCommentDAL.GetShopCommentsByShopId(pageindex, pagesize, shopid, checkstatus));
 }
Ejemplo n.º 10
0
 /// <summary>
 /// 获取用户评论列表
 /// </summary>
 /// <param name="pageindex">当前页数</param>
 /// <param name="pagesize">分页大小</param>
 /// <param name="shopid">店铺ID</param>
 /// <returns>List</returns>
 public List <ShopComment> GetShopCommentsByUserId(int pageindex, int pagesize, int userid)
 {
     return(ShopCommentDAL.GetShopCommentsByUserId(pageindex, pagesize, userid));
 }