- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 208 for userid (0.04 sec)
-
tests/scopes_test.go
} } func TestScopes(t *testing.T) { users := []*User{ GetUser("ScopeUser1", Config{}), GetUser("ScopeUser2", Config{}), GetUser("ScopeUser3", Config{}), } DB.Create(&users) var users1, users2, users3 []User DB.Scopes(NameIn1And2).Find(&users1) if len(users1) != 2 { t.Errorf("Should found two users's name in 1, 2, but got %v", len(users1)) } DB.Scopes(NameIn1And2, NameIn2And3).Find(&users2)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/get-current-user.md
## ユーザーの取得 `get_current_user` は作成した(偽物の)ユーティリティ関数を使って、 `str` としてトークンを受け取り、先ほどのPydanticの `User` モデルを返却します: {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *} ## 現在のユーザーの注入 ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。 {* ../../docs_src/security/tutorial002.py hl[31] *} Pydanticモデルの `User` として、 `current_user` の型を宣言することに注意してください。 その関数の中ですべての入力補完や型チェックを行う際に役に立ちます。 /// tip | 豆知識
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/es/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[25] *} ## Obtener el usuario `get_current_user` usará una función de utilidad (falsa) que creamos, que toma un token como un `str` y devuelve nuestro modelo de Pydantic `User`: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Inyectar al usuario actual Entonces ahora podemos usar el mismo `Depends` con nuestro `get_current_user` en la *path operation*:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/em/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
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.3K bytes - Viewed (0) -
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.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 17:46:44 UTC 2024 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/allcommon/EsAbstractEntity.java
} protected void registerModifiedProperty(String propertyName) { __modifiedProperties.addPropertyName(propertyName); registerSpecifiedProperty(propertyName); // synchronize if exists, basically for user's manual call } public void modifiedToSpecified() { if (__modifiedProperties.isEmpty()) { return; // basically no way when called in Framework (because called when SpecifyColumn exists)
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractEntity.java
} protected void registerModifiedProperty(String propertyName) { __modifiedProperties.addPropertyName(propertyName); registerSpecifiedProperty(propertyName); // synchronize if exists, basically for user's manual call } public void modifiedToSpecified() { if (__modifiedProperties.isEmpty()) { return; // basically no way when called in Framework (because called when SpecifyColumn exists)
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 10.9K bytes - Viewed (0) -
docs/es/docs/advanced/templates.md
```html Item ID: 42 ``` ### Argumentos de la Plantilla `url_for` 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 %}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/user/cbean/cq/bs/BsUserCQ.java
public void filtered(FilteredCall<UserCQ, UserCQ> filteredLambda) { filtered(filteredLambda, null); } public void filtered(FilteredCall<UserCQ, UserCQ> filteredLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) { bool((must, should, mustNot, filter) -> { filteredLambda.callback(must, filter); }, opLambda); } public void not(OperatorCall<UserCQ> notLambda) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 326.2K bytes - Viewed (0) -
docs/de/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[25] *} ## Den Benutzer holen `get_current_user` wird eine von uns erstellte (gefakte) Hilfsfunktion verwenden, welche einen Token vom Typ `str` entgegennimmt und unser Pydantic-`User`-Modell zurückgibt: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Den aktuellen Benutzer einfügen
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.6K bytes - Viewed (0)