40 lines
994 B
C#
40 lines
994 B
C#
namespace Application.Domain;
|
|
|
|
public interface IUnitUserAttrService
|
|
{
|
|
#region 个人属性
|
|
|
|
Task<UserAttrModel> GetUserAttrModel(string userId);
|
|
Task<unit_user_attr> GetUserAttr(string userId);
|
|
|
|
#endregion
|
|
|
|
#region 体力操作
|
|
|
|
Task<unit_user_blood> GetUserBlood(string userId);
|
|
Task<bool> UpdateUserBlood(string userId, int op, int count, bool mustUp = false);
|
|
|
|
#endregion
|
|
|
|
#region 经验操作
|
|
|
|
Task<unit_user_exp> GetUserExp(string userId);
|
|
Task<bool> UpdateUserExp(string userId, long exp, int op = 1);
|
|
|
|
#endregion
|
|
|
|
#region 士气操作
|
|
|
|
Task<unit_user_morale> GetUserMorale(string userId);
|
|
Task<bool> UpdateUserMorale(string userId, int op, int count);
|
|
|
|
#endregion
|
|
|
|
#region 活力
|
|
|
|
Task<unit_user_vigour> GetUserVigourInfo(string userId);
|
|
Task<bool> UpdateUserVigour(string userId, int op, decimal count, string UpTime = "");
|
|
Task<bool> UpdateUserUpVigour(string userId, decimal count);
|
|
|
|
#endregion
|
|
} |