mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
🐛fix: #ICI0GZ
This commit is contained in:
@@ -13,7 +13,7 @@ namespace OpenAuth.App
|
||||
/// SqlSugar基础类
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public abstract class SqlSugarBaseApp<T> where T : class, new()
|
||||
public abstract class SqlSugarBaseApp<T> where T : BaseEntity, new()
|
||||
{
|
||||
protected ISqlSugarClient SugarClient;
|
||||
|
||||
|
@@ -69,7 +69,7 @@ namespace OpenAuth.App
|
||||
var user = _auth.GetCurrentUser().User;
|
||||
obj.CreateUserId = user.Id;
|
||||
obj.CreateUserName = user.Name;
|
||||
await SugarClient.Insertable(obj).ExecuteCommandAsync();
|
||||
Repository.Insert(obj);
|
||||
}
|
||||
|
||||
public void Update(AddOrUpdateCategoryReq obj)
|
||||
|
Reference in New Issue
Block a user