Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions, unique constraints) and Web real login with 401 handling. Document setup and development workflows in root, WmsLite.Api, and WmsLite.Web README files. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
fa1b286463
241 files changed
+31188
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using WmsLite.Api.Common;
|
||||
using WmsLite.Api.Dtos.Common;
|
||||
using WmsLite.Api.Models;
|
||||
|
||||
namespace WmsLite.Api.Repositories.Interfaces;
|
||||
|
||||
public interface IBaseRepository<TEntity> where TEntity : BaseEntity, new()
|
||||
{
|
||||
Task<TEntity?> GetByIdAsync(long id);
|
||||
|
||||
Task<TEntity?> GetByIdAsync(long id, string tenantId, string ownerCode);
|
||||
|
||||
Task<List<TEntity>> GetListAsync(Expression<Func<TEntity, bool>> predicate);
|
||||
|
||||
Task<PagedResult<TEntity>> GetPagedListAsync(BasePagedQuery query);
|
||||
|
||||
Task<long> InsertAsync(TEntity entity);
|
||||
|
||||
Task<int> UpdateAsync(TEntity entity);
|
||||
|
||||
Task<int> SoftDeleteAsync(long id);
|
||||
|
||||
Task<int> SoftDeleteAsync(long id, string tenantId, string ownerCode);
|
||||
}
|
||||
Reference in new issue
Block a user