Move generate from module to service (#29465)

(cherry picked from commit b5188cd55c535a588492fb4e153d646ec4f3232a)
This commit is contained in:
Lunny Xiao 2024-02-28 21:40:36 +08:00 committed by Earl Warren
parent 9159842b56
commit 46fca90cfc
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
8 changed files with 97 additions and 82 deletions

View file

@ -358,7 +358,7 @@ func Generate(ctx *context.APIContext) {
return
}
opts := repo_module.GenerateRepoOptions{
opts := repo_service.GenerateRepoOptions{
Name: form.Name,
DefaultBranch: form.DefaultBranch,
Description: form.Description,

View file

@ -244,7 +244,7 @@ func CreatePost(ctx *context.Context) {
var repo *repo_model.Repository
var err error
if form.RepoTemplate > 0 {
opts := repo_module.GenerateRepoOptions{
opts := repo_service.GenerateRepoOptions{
Name: form.RepoName,
Description: form.Description,
Private: form.Private,