mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
more golint cleanup
This commit is contained in:
parent
2ead9b931e
commit
57d36f2545
@ -8,7 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//Removes channel topic created by invoker or under invokers channel
|
||||
//RemoveChannelTopic removes channel topic created by invoker or under invokers channel
|
||||
func RemoveChannelTopic(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//RemoveChannelTopic removes topic asset if invoker created topic
|
||||
//RemoveChannelTopicAsset removes topic asset if invoker created topic
|
||||
func RemoveChannelTopicAsset(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// scan parameters
|
||||
|
@ -9,6 +9,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetAccountAccess creates token to gain access to account
|
||||
func SetAccountAccess(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
token, _, res := AccessToken(r)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
//SetAccountAuthentication resets account credentials
|
||||
func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
token, res := BearerAccountToken(r)
|
||||
|
@ -7,6 +7,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
//SetAccountLogin resets account login with agent token
|
||||
func SetAccountLogin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, true)
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetAccountSearchable sets public visibility of account
|
||||
func SetAccountSearchable(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, true)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetArticleGroup assigns sharing group to article
|
||||
func SetArticleGroup(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetArticleRevision notifies contact of updated article revision
|
||||
func SetArticleRevision(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
card, code, err := ParamContactToken(r, false)
|
||||
@ -28,6 +29,7 @@ func SetArticleRevision(w http.ResponseWriter, r *http.Request) {
|
||||
WriteResponse(w, nil)
|
||||
}
|
||||
|
||||
//NotifyArticleRevision sets article revision of contact
|
||||
func NotifyArticleRevision(card *store.Card, revision int64) error {
|
||||
|
||||
act := &card.Account
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetArticleSubject updates the subject of specified article in account
|
||||
func SetArticleSubject(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetCardGroup assigns contact to sharing group
|
||||
func SetCardGroup(w http.ResponseWriter, r *http.Request) {
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
if err != nil {
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetCardNotes assignes notes to contact in account
|
||||
func SetCardNotes(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//SetCardProfile updates public profile of contact
|
||||
func SetCardProfile(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
//SetCardStatus updates connection status of contact
|
||||
func SetCardStatus(w http.ResponseWriter, r *http.Request) {
|
||||
var res error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user