Skip to content

Commit 32be6c8

Browse files
committed
Merge remote-tracking branch 'origin/feat/1.5.0/user' into test
2 parents d2831a8 + b2d5e9b commit 32be6c8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

internal/controller/embed_controller.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ func NewEmbedController() *EmbedController {
3232
return &EmbedController{}
3333
}
3434

35-
// GetEmbedConfig godoc
36-
// @Summary GetEmbedConfig
37-
// @Description GetEmbedConfig
38-
// @Tags PluginEmbed
35+
// GetEmbedConfig get embed plugin config
36+
// @Summary get embed plugin config
37+
// @Description get embed plugin config
38+
// @Tags Plugin
3939
// @Accept json
4040
// @Produce json
41-
// @Router /answer/api/v1/embed/config [get]
4241
// @Success 200 {object} handler.RespBody{data=[]plugin.EmbedConfig}
42+
// @Router /answer/api/v1/embed/config [get]
4343
func (c *EmbedController) GetEmbedConfig(ctx *gin.Context) {
4444
resp := make([]*plugin.EmbedConfig, 0)
4545

internal/controller/revision_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (rc *RevisionController) GetRevisionList(ctx *gin.Context) {
7474
resp, err := rc.revisionListService.GetRevisionList(ctx, req)
7575
list := make([]schema.GetRevisionResp, 0)
7676
for _, item := range resp {
77-
if item.Status == entity.RevisioNnormalStatus || item.Status == entity.RevisionReviewPassStatus {
77+
if item.Status == entity.RevisionNormalStatus || item.Status == entity.RevisionReviewPassStatus {
7878
list = append(list, item)
7979
}
8080
}

internal/entity/revision_entity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
)
2525

2626
const (
27-
// RevisioNnormalStatus this revision is Nnormal
28-
RevisioNnormalStatus = 0
27+
// RevisionNormalStatus this revision is normal
28+
RevisionNormalStatus = 0
2929
// RevisionUnreviewedStatus this revision is unreviewed
3030
RevisionUnreviewedStatus = 1
3131
// RevisionReviewPassStatus this revision is reviewed and approved by operator

internal/service/dashboard/dashboard_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (ds *dashboardService) voteCount(ctx context.Context) int64 {
265265
}
266266

267267
func (ds *dashboardService) remoteVersion(ctx context.Context) string {
268-
req, _ := http.NewRequest("GET", "https://getlatest.answer.dev/", nil)
268+
req, _ := http.NewRequest("GET", "https://answer.apache.org/data/latest.json?from_version="+constant.Version, nil)
269269
req.Header.Set("User-Agent", "Answer/"+constant.Version)
270270
httpClient := &http.Client{}
271271
httpClient.Timeout = 15 * time.Second

0 commit comments

Comments
 (0)