이름 변경
This commit is contained in:
@ -466,7 +466,7 @@ func (caller apiCaller) maintenanceAPI(w http.ResponseWriter, r *http.Request) e
|
|||||||
} else if r.Method == "POST" {
|
} else if r.Method == "POST" {
|
||||||
servicename := queryvals.Get("name")
|
servicename := queryvals.Get("name")
|
||||||
|
|
||||||
var divs map[string]*division
|
var divs map[string]*Division
|
||||||
dec := json.NewDecoder(r.Body)
|
dec := json.NewDecoder(r.Body)
|
||||||
if err := dec.Decode(&divs); err != nil {
|
if err := dec.Decode(&divs); err != nil {
|
||||||
w.WriteHeader(http.StatusBadRequest)
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
|
|||||||
@ -165,7 +165,7 @@ type Maintenance struct {
|
|||||||
link string
|
link string
|
||||||
}
|
}
|
||||||
|
|
||||||
type division struct {
|
type Division struct {
|
||||||
Url string // 요것은 클라이언트 빌드하고 나서 json:"-"으로 변경하자. 클라이언트에 직접 내려보내지 않음
|
Url string // 요것은 클라이언트 빌드하고 나서 json:"-"으로 변경하자. 클라이언트에 직접 내려보내지 않음
|
||||||
Priority int
|
Priority int
|
||||||
State DivisionStateName
|
State DivisionStateName
|
||||||
@ -182,7 +182,7 @@ type ServiceDescriptionSummary struct {
|
|||||||
|
|
||||||
type serviceDescription struct {
|
type serviceDescription struct {
|
||||||
ServiceDescriptionSummary `bson:",inline"`
|
ServiceDescriptionSummary `bson:",inline"`
|
||||||
Divisions map[string]*division `bson:"divisions"`
|
Divisions map[string]*Division `bson:"divisions"`
|
||||||
ServerApiTokens []primitive.ObjectID `bson:"api_tokens"`
|
ServerApiTokens []primitive.ObjectID `bson:"api_tokens"`
|
||||||
ApiUsers map[string][]string `bson:"api_users"`
|
ApiUsers map[string][]string `bson:"api_users"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user