logo search
This commit is contained in:
parent
bf0f8b9a5d
commit
4f07c86e7e
|
@ -40,6 +40,14 @@ service info {
|
||||||
@handler RestaurantListHandler
|
@handler RestaurantListHandler
|
||||||
get /api/info/restaurant/list(request) returns (response);
|
get /api/info/restaurant/list(request) returns (response);
|
||||||
|
|
||||||
|
// 搜索建议
|
||||||
|
@handler PreLogoSearchSuggestionsHandler
|
||||||
|
post /api/info/prelogo/search/suggestions(PreLogoSearchRequest) returns (response);
|
||||||
|
|
||||||
|
// 搜索
|
||||||
|
@handler PreLogoSearchHandler
|
||||||
|
post /api/info/prelogo/search(PreLogoSearchRequest) returns (response);
|
||||||
|
|
||||||
@handler ContactUsHandler
|
@handler ContactUsHandler
|
||||||
post /api/info/contact/us(ContactUsRequest) returns (response);
|
post /api/info/contact/us(ContactUsRequest) returns (response);
|
||||||
}
|
}
|
||||||
|
@ -52,6 +60,12 @@ type (
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PreLogoSearchRequest {
|
||||||
|
ZipCode string `json:"zip_code"` // 邮编
|
||||||
|
Keywords int64 `json:"keywords"` // 关键字
|
||||||
|
}
|
||||||
|
|
||||||
UserInfoRequest {
|
UserInfoRequest {
|
||||||
Module []string `json:"module"`
|
Module []string `json:"module"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ var (
|
||||||
CodeSaveErr = &StatusResponse{501, "failed to save"} // 保存失败
|
CodeSaveErr = &StatusResponse{501, "failed to save"} // 保存失败
|
||||||
CodeServiceErr = &StatusResponse{510, "server logic error"} // 服务逻辑错误
|
CodeServiceErr = &StatusResponse{510, "server logic error"} // 服务逻辑错误
|
||||||
CodeUnAuth = &StatusResponse{401, "unauthorized"} // 未授权
|
CodeUnAuth = &StatusResponse{401, "unauthorized"} // 未授权
|
||||||
|
CodeUnDebugAuth = &StatusResponse{5401, "unauthorized"} // debug未授权
|
||||||
|
|
||||||
CodeOAuthGoogleApiErr = &StatusResponse{5070, "oauth2 google api error"}
|
CodeOAuthGoogleApiErr = &StatusResponse{5070, "oauth2 google api error"}
|
||||||
CodeOAuthRegisterTokenErr = &StatusResponse{5071, "oauth2 register create token error"}
|
CodeOAuthRegisterTokenErr = &StatusResponse{5071, "oauth2 register create token error"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user