Skip to content

Commit

Permalink
feat(pixiu): add pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
jihu committed Jan 16, 2025
1 parent e285db9 commit b416cd9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion api/server/router/cluster/cluster_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ func (cr *clusterRouter) getEventList(c *gin.Context) {
}
eventOpt struct {
types.EventOptions `json:",inline"`
types.ListOptions `json:",inline"`
}
err error
)
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default:

# 数据库地址信息
mysql:
host: 124.222.40.110
host: peng
user: root
password: Pixiu868686
port: 3306
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/model/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (p GroupBinding) GetGroupName() string {
// AdminPolicy is the specific policy for admin/root user.
var AdminPolicy = NewGroupPolicy(AdminGroup, ObjectAll, SidAll, OpAll)

// IsAdminPolicy returns true if the policy is the ad min policy.
// IsAdminPolicy returns true if the policy is the admin policy.
func IsAdminPolicy(policy Policy) bool {
switch p := policy.(type) {
case GroupPolicy:
Expand Down
1 change: 0 additions & 1 deletion pkg/types/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ func (l *ListOptions) IsDesc() bool {
if l.Keyword == "" {
return false
}

if l.Keyword != "asc" {
return true
}
Expand Down

0 comments on commit b416cd9

Please sign in to comment.