- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,443 for user1 (0.03 sec)
-
tests/associations_belongs_to_test.go
t.Errorf("Error happened when append company to user, got %v", err) } if users[0].CompanyID == nil || users[1].CompanyID == nil || *users[0].CompanyID != *users[1].CompanyID { t.Errorf("user's company id should exists and equal, but its: %v, %v", users[0].CompanyID, users[1].CompanyID) } DB.Model(&users[0]).Association("Company").Delete(&company) AssertAssociationCount(t, users[0], "Company", 0, "After Delete")
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 9.3K bytes - Viewed (0) -
tests/associations_has_many_test.go
t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User DB.Find(&user2, "id = ?", user.ID) DB.Model(&user2).Association("Team").Find(&user2.Team) CheckUser(t, user2, user) // Count AssertAssociationCount(t, user, "Team", 2, "") // Append team := *GetUser("team", Config{})
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
tests/associations_has_one_test.go
) func TestHasOneAssociation(t *testing.T) { user := *GetUser("hasone", Config{Account: true}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User DB.Find(&user2, "id = ?", user.ID) DB.Model(&user2).Association("Account").Find(&user2.Account) CheckUser(t, user2, user) // Count
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
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/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/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/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) -
docs/pt/docs/tutorial/security/get-current-user.md
Isso nos ajudarรก dentro da funรงรฃo com...
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Jan 10 13:33:35 UTC 2025 - 4.5K bytes - Viewed (0) -
docs/ko/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`์ ๋์ผํ `Depends`๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. {* ../../docs_src/security/tutorial002.py hl[31] *} Pydantic ๋ชจ๋ธ์ธ `User`๋ก `current_user`์ ํ์ ์ ์ ์ธํ๋ ๊ฒ์ ์์์ผ ํฉ๋๋ค. ์ด๊ฒ์ ๋ชจ๋ ์๋ฃ ๋ฐ ํ์ ๊ฒ์ฌ๋ฅผ ํตํด ํจ์ ๋ด๋ถ์์ ์ฐ๋ฆฌ๋ฅผ ๋์ธ ๊ฒ์ ๋๋ค.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K 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)