Add hashing for link password and update link update service method
This commit is contained in:
parent
a01f540a29
commit
f4684be37d
4 changed files with 79 additions and 32 deletions
|
|
@ -16,7 +16,6 @@ type ResourceModel struct {
|
|||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
RedirectURL string `json:"redirectUrl"`
|
||||
Password string `json:"password"`
|
||||
CreationTime int64 `json:"creationTime"`
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +45,6 @@ func MapEntityToModel(entity *Link) ResourceModel {
|
|||
Id: entity.Id,
|
||||
Name: entity.Name,
|
||||
RedirectURL: entity.RedirectURL.String(),
|
||||
Password: entity.Password,
|
||||
CreationTime: entity.CreationTime.Unix(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue