/// <summary> /// /// </summary> /// <param name="uid1"></param> /// <param name="mid"></param> /// <param name="type"></param> /// <returns></returns> public static int BeingFriend(int uid, int mid, byte type) { return(DBH.ExecuteSP(QA.DBCS_MAIN, "usp_being_friend", new SqlParameter("@uid1", uid), new SqlParameter("@uid2", mid), new SqlParameter("@type", type))); }
/// <summary> /// 创建一个事件 /// </summary> /// <param name="entity"></param> /// <returns></returns> public static int CreateEvent(byte type, byte spread, int uid, int touid, string tmplName, string data = null) { return(DBH.ExecuteSP(QA.DBCS_MAIN, "usp_event_create", new SqlParameter("@type", type), new SqlParameter("@spread", spread), new SqlParameter("@uid", uid), new SqlParameter("@touid", touid), new SqlParameter("@tmplname", tmplName), new SqlParameter("@data", data))); }