-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve code and create access log
- Loading branch information
Showing
19 changed files
with
151 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright Url-Shortenter Author(https://houseme.github.io/url-shortenter/). All Rights Reserved. | ||
* | ||
* This Source Code Form is subject to the terms of the MIT License. | ||
* If a copy of the MIT was not distributed with this file, | ||
* You can obtain one at https://github.com/houseme/url-shortenter. | ||
*/ | ||
|
||
package access | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/houseme/url-shortenter/app/console/internal/model" | ||
"github.com/houseme/url-shortenter/app/console/internal/service" | ||
) | ||
|
||
type sAccess struct { | ||
} | ||
|
||
// init | ||
func init() { | ||
service.RegisterAccess(&sAccess{}) | ||
} | ||
|
||
// List is the handler for List. | ||
func (s *sAccess) List(ctx context.Context, in *model.AccessListInput) (out *model.AccessListOutput, err error) { | ||
return | ||
} | ||
|
||
// Detail is the handler for Detail. | ||
func (s *sAccess) Detail(ctx context.Context, in *model.AccessDetailInput) (out *model.AccessDetailOutput, err error) { | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright Url-Shortenter Author(https://houseme.github.io/url-shortenter/). All Rights Reserved. | ||
* | ||
* This Source Code Form is subject to the terms of the MIT License. | ||
* If a copy of the MIT was not distributed with this file, | ||
* You can obtain one at https://github.com/houseme/url-shortenter. | ||
*/ | ||
|
||
package model | ||
|
||
// AccessListInput is the input of AccessList. | ||
type AccessListInput struct { | ||
// Page is the page number. | ||
} | ||
|
||
// AccessListOutput is the output of AccessList. | ||
type AccessListOutput struct { | ||
// List is the list of access. | ||
} | ||
|
||
// AccessDetailInput is the input of AccessDetail. | ||
type AccessDetailInput struct { | ||
// Id is the id of access. | ||
} | ||
|
||
// AccessDetailOutput is the output of AccessDetail. | ||
type AccessDetailOutput struct { | ||
// Access is the access. | ||
} |
Oops, something went wrong.