Initial commit

This commit is contained in:
2022-08-26 21:10:50 +02:00
parent f5b7072065
commit 2bf97a0194
21 changed files with 1339 additions and 2 deletions

20
internal/types/types.go Normal file
View File

@ -0,0 +1,20 @@
// Code generated by goctl. DO NOT EDIT.
package types
type ExpandReq struct {
Snowflake string `path:"snowflake"`
}
type ExpandResp struct {
RedirectUrl string `json:"redirectUrl"`
}
type ShortenReq struct {
RedirectUrl string `json:"redirectUrl"`
Secret string `json:"secret,optional"`
ExpiresIn int64 `json:"expiresIn,optional"`
}
type ShortenResp struct {
Id string `json:"id"`
}