修改迁移时gitea数据创建成功,但是本地没创建成功的问题

This commit is contained in:
sylor_huang@126.com
2020-03-12 19:46:59 +08:00
parent 06f74401b9
commit 934595c6a4
2 changed files with 102 additions and 62 deletions

View File

@@ -0,0 +1,27 @@
class Gitea::User::GetTokenService < Gitea::ClientService
attr_reader :username
def initialize(username)
@username = username
end
def call
params = {}
url = "/users/#{username}".freeze
params = params.merge(data: request_params)
get(url, params)
end
private
# def token_params
# {
# username: username,
# password: password
# }
# end
def request_params
{ username: username }
end
end