• 大小: 14.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-05
  • 语言: C#
  • 标签: asp.net  mvc  微博源码  

资源简介

asp.net mvc 微博源码,很有学习价值

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using Weibo.Entity;
using Weibo.Data;
using Weibo.Config;
using Weibo.Common;

namespace Weibo.Business
{
public class BlackLists
{
public static long CreateBlackList(BlackList blackList )
{
try
{
if (blackList == null)
return -1;
return Data.BlackLists.CreateBlackList(blackList);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return -1;
}
}

public static bool DelBlackList(long id)
{
try
{
if (id<=0)
return false;
return Data.BlackLists.DelBlackList(id);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

        public static bool DelBlackListByUID(long uidlong pulledUid)
        {
            try
            {
                if (uid <= 0||pulledUid<=0)
                    return false;
                return Data.BlackLists.DelBlackListByUID(uidpulledUid);
            }
            catch (Exception ex)
            {
                Logs.WriteErrorLog(ex);
                return false;
              
            }
        }

public static bool IsInBlackList(long uidlong pulledUid)
{
try
{
if (uid <= 0||pulledUid<=0)
return false;
return Data.BlackLists.IsInBlackList(uidpulledUid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

public static IList GetBlackListByUID(long uid)
{
try
{
if (uid <= 0)
return null;
return Data.BlackLists.GetBlackListByUID(uid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}

public static IList GetMyBlackList(int pageIndex int pageSizelong uidref int rowCount)
{
try
{
string where = “UID=“ + uid.ToString();
return Data.BlackLists.GetBlackListByPager(pageIndexpageSizewhereref rowCount);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}


}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-04-15 15:12  Web\
     目录           0  2014-04-15 15:22  Web\Weibo\
     目录           0  2012-04-16 19:47  Web\Weibo\Weibo.Business\
     目录           0  2012-04-16 19:47  Web\Weibo\Weibo.Business\bin\
     目录           0  2012-04-16 19:47  Web\Weibo\Weibo.Business\bin\Debug\
     文件       64000  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Business.dll
     文件      257536  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Business.pdb
     文件       52736  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Common.dll
     文件      155136  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Common.pdb
     文件       23552  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Config.dll
     文件      108032  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Config.pdb
     文件       60928  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Data.dll
     文件      251392  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Data.pdb
     文件       46080  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Entity.dll
     文件        7680  2014-04-15 15:24  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Entity.pdb
     文件       19968  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Plugin.dll
     文件       42496  2014-04-15 15:14  Web\Weibo\Weibo.Business\bin\Debug\Weibo.Plugin.pdb
     目录           0  2012-04-16 19:47  Web\Weibo\Weibo.Business\bin\Release\
     文件        2233  2012-01-27 20:22  Web\Weibo\Weibo.Business\BlackLists.cs
     文件        2658  2012-01-27 20:22  Web\Weibo\Weibo.Business\Careers.cs
     文件       12646  2012-01-27 20:22  Web\Weibo\Weibo.Business\Comments.cs
     文件        1810  2012-01-27 20:22  Web\Weibo\Weibo.Business\Companies.cs
     文件         639  2012-01-27 20:22  Web\Weibo\Weibo.Business\Complaints.cs
     文件        2649  2012-01-27 20:22  Web\Weibo\Weibo.Business\Educations.cs
     文件        8292  2012-03-11 14:16  Web\Weibo\Weibo.Business\Emails.cs
     文件        1166  2012-01-27 20:22  Web\Weibo\Weibo.Business\expressions.cs
     文件        1648  2012-01-27 20:22  Web\Weibo\Weibo.Business\Froms.cs
     文件        4689  2012-01-27 20:22  Web\Weibo\Weibo.Business\Groups.cs
     文件        2149  2012-03-11 13:34  Web\Weibo\Weibo.Business\Logs.cs
     文件        7687  2012-01-27 20:22  Web\Weibo\Weibo.Business\Messages.cs
     文件       25038  2012-01-28 20:22  Web\Weibo\Weibo.Business\MiniBlogs.cs
............此处省略2330个文件信息

评论

共有 条评论