1、初始化仓库

This commit is contained in:
2025-05-19 14:06:21 +08:00
commit 8a1d028f3e
28 changed files with 3832 additions and 0 deletions

View File

@ -0,0 +1,27 @@
Imports System.Net.Http
Public Class CopyService
'本地缓存'
Public LocalKeyWords As KeywordItem() = {}
Public client As HttpClient = New HttpClient
''' <summary>
''' 缓存关键词数据
''' </summary>
''' <returns></returns>
Public Async Function InitLocal(baseUrl As String) As Task
Try
Dim url As String = $"{baseUrl}/mm-machine/keywords"
Dim response As HttpResponseMessage = Await client.GetAsync(url)
If response.IsSuccessStatusCode Then
Dim responseText As String = Await response.Content.ReadAsStringAsync()
If responseText = "成功更新数据" Then
End If
End If
Catch ex As Exception
End Try
End Function
End Class