Browse Source

userName: 获取当前用户信息

Yi 1 year ago
parent
commit
6284dcb9af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      module/backend/interface.go

+ 1 - 1
module/backend/interface.go

@@ -112,7 +112,7 @@ type PastureService interface {
 type SystemService interface {
 	// Auth 系统用户相关
 	Auth(ctx context.Context, auth *operationPb.UserAuthData) (*operationPb.SystemToken, error)
-	GetUserName(ctx context.Context) (string, error)
+	GetCurrentUserName(ctx context.Context) (string, error)
 	GetUserInfo(ctx context.Context, token string) (*operationPb.UserAuth, error)
 	CreateSystemUser(ctx context.Context, req *operationPb.AddSystemUser) error
 	SearchSystemUserList(ctx context.Context, req *operationPb.SearchUserRequest) (*operationPb.SearchUserResponse, error)