more golint cleanup

This commit is contained in:
Roland Osborne 2022-07-29 14:50:40 -07:00
parent 2ead9b931e
commit 57d36f2545
13 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -8,6 +8,7 @@ import (
"strings"
)
//SetAccountAuthentication resets account credentials
func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) {
token, res := BearerAccountToken(r)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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 {

View File

@ -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)

View File

@ -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)

View File

@ -11,6 +11,7 @@ import (
"strconv"
)
//SetCardStatus updates connection status of contact
func SetCardStatus(w http.ResponseWriter, r *http.Request) {
var res error