Initial commit
This commit is contained in:
20
internal/types/types.go
Normal file
20
internal/types/types.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user