Category: Codice Configurazione
Files del codice di configurazione
therapy.go
28/08/2024
0 Comments
# therapy.go package types type TherapySession struct {SessionID string json:"session_id"Therapist sdk.AccAddress json:"therapist"Patient sdk.AccAddress json:"patient"SessionCost sdk.Coin json:"session_cost"SessionDate time.Time json:"session_date"} Condividi
keeper.go
28/08/2024
0 Comments
# keeper.go package keeper import (“github.com/cosmos/cosmos-sdk/types”“github.com/cosmos/cosmos-sdk/x/auth/types” “github.com/your_username/experience/x/registration/types” ) // RegisterPatient registra un nuovo paziente e crea un walletfunc (k Keeper) RegisterPatient(ctx types.Context, creator types.AccAddress, name string, email string) error {//