重构存款预算
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 44s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 3s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 44s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 3s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
This commit is contained in:
18
WebApi.Test/Basic/BaseTest.cs
Normal file
18
WebApi.Test/Basic/BaseTest.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace WebApi.Test.Basic;
|
||||
|
||||
public class BaseTest
|
||||
{
|
||||
public BaseTest()
|
||||
{
|
||||
// 初始化雪花算法ID生成器
|
||||
var options = new IdGeneratorOptions(1);
|
||||
try
|
||||
{
|
||||
YitIdHelper.SetIdGenerator(options);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// 忽略重复设置可能引发的异常
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user