- 博客(22)
- 收藏
- 关注
原创 学习笔记-CleanArchitecture 02
1,运行项目后,我们点击“Todo” 这个menu,跳转到登录页面,默认用户名密码是:administrator@localhost 和Administrator1!第一反应,我去代码中搜有没有controller ,没有找到任何controller。可以找到对应的 CreateTodoItemCommand 这个是MediaR 这个做的。我按照运行好后,做一个操作,然后查看这个接口后面怎么做的这个思路来看代码的。可以找到他调用的是一个Post api/Todoitems 的接口。
2024-06-19 18:19:49
253
原创 【无标题】.net core中加定时任务,使用Pomelo.AspNetCore.TimedJob,并且使用注入来扩展job
TimedJob 依赖注入.net core定时任务
2023-02-23 16:59:57
390
原创 drupal9注册用户后的操作hook_user_insert以及调用服务器脚本遇到的问题
drupal9 hook_user_insert Process 方法
2022-09-03 15:22:53
205
原创 清障记-1(2022-07-29)- 阿里云、centos8、nginx、nodejs、react nextjs、go、git、mysql8、mongodb
清扫障碍-前后端服务器普通部署记录
2022-07-29 21:59:30
854
原创 2021-04-20 -输入一个数组和一个数字,在数组中查找两个数,使得它们的和正好是输入的那个数字。
method 1:int resultNum = 15; // int[] data = new int[] { 8, 5, 6, 11, 10, 17, 18, 16, 15 }; //int[] data = new int[] { 1, 2, 4, 7, 11, 15, 20, 24, 26, 30 }; int[] data = new int[] { 1, 2, 4, 7, 11, 15 }; var
2021-04-20 13:33:07
314
原创 2021-03-02
,1,模拟并发: var result = new RepositoryResult<Dictionary<string, string>>() { IsSuccess = false }; var taskList = new List<Task>(); var sw = new System.Diagnostics.Stopwatch(); sw.Start(); for (var i = 0; i < 1
2021-03-02 17:57:21
107
原创 测试下多个文件上传的功能IFormFileCollection
[HttpPost("test")] public async Task<IActionResult> TestGoods(IFormFileCollection files) { var result = new List<string>(); var baseFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Tests");
2021-02-24 18:15:00
1972
原创 The-Art-Of-Programming-By-July 01.01 学习
摘自https://github.com/julycoding/The-Art-Of-Programming-by-July第一篇:旋转字符串1, 暴力移位法 改成c#的试下:public static void Main(string[] args) { var result= LeftRotateString("abcdefg", 2); } public static string LeftShift.
2021-01-25 15:19:50
96
原创 自动subString属性
需要一个场景: 在构建model的时候 需要有些字段自动截取。 不想到使用的时候再去 SubString ,找了下试了下很多方法,比如新建一个_name的属性,将name去设置成截取后的字段, 然而新建model的时候总会多出 _name这个属性。后面我试了下下面的方法就可以满足我的需求了。 public class TruncateStringItem: BaseItem { public decimal amount { get; set; } publ.
2021-01-13 14:26:47
184
原创 EPPus 使用总结
EPPus 使用安装: nuget 搜索 EPPlus 使用tips 新建一个文件的: var template = $"{CommonConst.TEMPLATE_FILE_PATH}/invoice.xlsx"; var fileName = string.Concat("invoice_", shippingPackageId, ".xlsx");var filePath = $"{CommonConst.UPLOAD_FILE_PATH}/{fileName}";var.
2020-07-20 15:37:30
705
原创 python 单链表头插尾插
python 单链表头插尾插数据结构算法非常薄弱,查缺补漏,看了书后想实现单链表的头插和尾插,用python实现,看到一篇文章已经实现了头插https://www.php.cn/python-tutorials-416272.html自己想了下,写了一个尾插class Node: def __init__(self, data, nextNode=None): se...
2019-10-17 18:04:46
561
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人