Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 215 for userid (0.07 seconds)

  1. docs/zh/docs/tutorial/security/get-current-user.md

    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 注入当前用户
    
    在*路径操作* 的 `Depends` 中使用 `get_current_user`:
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。
    
    这有助于在函数内部使用代码补全和类型检查。
    
    /// tip | 提示
    
    还记得请求体也是使用 Pydantic 模型声明的吧。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ///
    
    ## Erros das dependências e valores de retorno { #dependencies-errors-and-return-values }
    
    Você pode utilizar as mesmas *funções* de dependências que você usaria normalmente.
    
    ### Requisitos de Dependências { #dependency-requirements }
    
    Dependências podem declarar requisitos de requisições (como cabeçalhos) ou outras subdependências:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. docs/pt/docs/tutorial/schema-extra-example.md

    ////
    
    Essas informações extras serão adicionadas como estão ao **JSON Schema** de saída para esse modelo e serão usadas na documentação da API.
    
    //// tab | Pydantic v2
    
    Na versão 2 do Pydantic, você usaria o atributo `model_config`, que recebe um `dict`, conforme descrito na <a href="https://docs.pydantic.dev/latest/api/config/" class="external-link" target="_blank">documentação do Pydantic: Configuration</a>.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  4. docs/ko/docs/features.md

    from datetime import date
    
    from pydantic import BaseModel
    
    # 변수를 str로 선언
    # 그 후 함수 안에서 편집기 지원을 받으세요
    def main(user_id: str):
        return user_id
    
    
    # Pydantic 모델
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    위의 코드는 다음과 같이 사용될 수 있습니다:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  5. docs/es/docs/advanced/response-directly.md

    Luego, detrás de escena, pondría esos datos compatibles con JSON (por ejemplo, un `dict`) dentro de un `JSONResponse` que se usaría para enviar el response al cliente.
    
    Pero puedes devolver un `JSONResponse` directamente desde tus *path operations*.
    
    Esto podría ser útil, por ejemplo, para devolver headers o cookies personalizados.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  6. docs/es/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Argumentos de la Plantilla `url_for` { #template-url-for-arguments }
    
    También puedes usar `url_for()` dentro de la plantilla, toma como argumentos los mismos que usaría tu *path operation function*.
    
    Entonces, la sección con:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

        /**
         * Returns the user's home directory.
         * If not explicitly set, this value will be detected during parsing.
         *
         * @return the user's home directory path, or null if not set
         */
        @Nullable
        Path userHome();
    
        /**
         * Returns the input stream to be used for the Maven execution.
         * If not set, {@link System#in} will be used by default.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  8. ci/official/envs/rbe

      # A local firewall rule for the container is added in
      # ci/official/utilities/setup_docker.sh.
    else
      # The volume mapping flag below shares the user's gcloud credentials, if any,
      # with the container, in case the user has credentials stored there.
      # This would allow Bazel to authenticate for RBE.
      # Note: TF's CI does not have any credentials stored there.
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Fri Aug 09 16:05:18 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  9. tests/embedded_struct_test.go

    	} else if len(stmt.Schema.PrimaryFields) != 1 {
    		t.Errorf("should have only one primary field with embedded struct, but got %v", len(stmt.Schema.PrimaryFields))
    	}
    
    	for _, name := range []string{"user_id", "user_name", "user_email"} {
    		if !DB.Migrator().HasColumn(&HNPost{}, name) {
    			t.Errorf("should has prefixed column %v", name)
    		}
    	}
    
    	// save embedded struct
    	DB.Save(&HNPost{BasePost: BasePost{Title: "news"}})
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed May 08 04:07:58 GMT 2024
    - 7.3K bytes
    - Click Count (0)
  10. docs/ja/docs/features.md

    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    これは以下のように用いられます:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 12.2K bytes
    - Click Count (0)
Back to Top