Add link update model
This commit is contained in:
parent
fe9b4b5f5f
commit
c704005ed2
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@ type ResourceModel struct {
|
||||||
CreationTime int64 `json:"creationTime"`
|
CreationTime int64 `json:"creationTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type UpdateModel struct {
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
RedirectURL string `json:"redirectUrl,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
func (m *CreationModel) MapModelToEntity() (*Link, error) {
|
func (m *CreationModel) MapModelToEntity() (*Link, error) {
|
||||||
u, err := url.Parse(m.RedirectURL)
|
u, err := url.Parse(m.RedirectURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue