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"
|
"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) {
|
func RemoveChannelTopic(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// scan parameters
|
// scan parameters
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"net/http"
|
"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) {
|
func RemoveChannelTopicAsset(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// scan parameters
|
// scan parameters
|
||||||
|
@ -9,6 +9,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetAccountAccess creates token to gain access to account
|
||||||
func SetAccountAccess(w http.ResponseWriter, r *http.Request) {
|
func SetAccountAccess(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
token, _, res := AccessToken(r)
|
token, _, res := AccessToken(r)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetAccountAuthentication resets account credentials
|
||||||
func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) {
|
func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
token, res := BearerAccountToken(r)
|
token, res := BearerAccountToken(r)
|
||||||
|
@ -7,6 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetAccountLogin resets account login with agent token
|
||||||
func SetAccountLogin(w http.ResponseWriter, r *http.Request) {
|
func SetAccountLogin(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, true)
|
account, code, err := ParamAgentToken(r, true)
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetAccountSearchable sets public visibility of account
|
||||||
func SetAccountSearchable(w http.ResponseWriter, r *http.Request) {
|
func SetAccountSearchable(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, true)
|
account, code, err := ParamAgentToken(r, true)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetArticleGroup assigns sharing group to article
|
||||||
func SetArticleGroup(w http.ResponseWriter, r *http.Request) {
|
func SetArticleGroup(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, false)
|
account, code, err := ParamAgentToken(r, false)
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetArticleRevision notifies contact of updated article revision
|
||||||
func SetArticleRevision(w http.ResponseWriter, r *http.Request) {
|
func SetArticleRevision(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
card, code, err := ParamContactToken(r, false)
|
card, code, err := ParamContactToken(r, false)
|
||||||
@ -28,6 +29,7 @@ func SetArticleRevision(w http.ResponseWriter, r *http.Request) {
|
|||||||
WriteResponse(w, nil)
|
WriteResponse(w, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//NotifyArticleRevision sets article revision of contact
|
||||||
func NotifyArticleRevision(card *store.Card, revision int64) error {
|
func NotifyArticleRevision(card *store.Card, revision int64) error {
|
||||||
|
|
||||||
act := &card.Account
|
act := &card.Account
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetArticleSubject updates the subject of specified article in account
|
||||||
func SetArticleSubject(w http.ResponseWriter, r *http.Request) {
|
func SetArticleSubject(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, false)
|
account, code, err := ParamAgentToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetCardGroup assigns contact to sharing group
|
||||||
func SetCardGroup(w http.ResponseWriter, r *http.Request) {
|
func SetCardGroup(w http.ResponseWriter, r *http.Request) {
|
||||||
account, code, err := BearerAppToken(r, false)
|
account, code, err := BearerAppToken(r, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetCardNotes assignes notes to contact in account
|
||||||
func SetCardNotes(w http.ResponseWriter, r *http.Request) {
|
func SetCardNotes(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := BearerAppToken(r, false)
|
account, code, err := BearerAppToken(r, false)
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetCardProfile updates public profile of contact
|
||||||
func SetCardProfile(w http.ResponseWriter, r *http.Request) {
|
func SetCardProfile(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
account, code, err := ParamAgentToken(r, false)
|
account, code, err := ParamAgentToken(r, false)
|
||||||
|
@ -11,6 +11,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//SetCardStatus updates connection status of contact
|
||||||
func SetCardStatus(w http.ResponseWriter, r *http.Request) {
|
func SetCardStatus(w http.ResponseWriter, r *http.Request) {
|
||||||
var res error
|
var res error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user