using System.Collections.Generic;
namespace TProduct.HttpClient
{
///
/// SoftSetting
///
public partial class SoftSetting
{
#region Insert
///
/// ²åÈëÒ»Ìõ
///
public bool Insert(Entity.SoftSetting model)
{
return HttpClientHelper.Build("SoftSetting", "Insert@V1.0").Post(model);
}
///
/// ²åÈë¶àÌõ
///
public bool Inserts(List list)
{
return HttpClientHelper.Build("SoftSetting", "Inserts@V1.0").Post(list);
}
#endregion
#region Update
///
/// ¸üÐÂÒ»Ìõ
///
public bool Update(Entity.SoftSetting model)
{
return HttpClientHelper.Build("SoftSetting", "Update@V1.0").Put(model);
}
///
/// ¸üжàÌõ
///
public bool Updates(List list)
{
return HttpClientHelper.Build("SoftSetting", "Updates@V1.0").Put(list);
}
#endregion
#region Delete
///
/// ¸ù¾ÝIDɾ³ý
///
public bool DeleteByID(long ID)
{
return HttpClientHelper.Build("SoftSetting", $"DeleteByID@V1.0?ID={ID}").Delete();
}
///
/// ¸ù¾ÝIdsɾ³ý
///
public bool DeleteByIds(List Ids)
{
var delIds = LongListHelper.ToString(Ids);
return HttpClientHelper.Build("SoftSetting", $"DeleteByIds@V1.0?Ids={delIds}").Delete();
}
///
/// ɾ³ýÈ«²¿
///
public bool DeleteAll()
{
return HttpClientHelper.Build("SoftSetting", $"DeleteAll@V1.0").Delete();
}
#endregion
}
}