models

package
v0.0.0-...-e77dc18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateExerciseRequest

type CreateExerciseRequest struct {
	Name                string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Duration            time.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	Relax               time.Duration `protobuf:"bytes,3,opt,name=relax,proto3" json:"relax,omitempty"`
	Count               int32         `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	NumberOfSets        int32         `json:"number_of_sets,omitempty"`
	NumberOfRepetitions int32         `json:"number_of_repetitions,omitempty"`
	Type                ExerciseType  `json:"type,omitempty"`
	UserID              string
	UID                 string
}

type CreateExerciseResponse

type CreateExerciseResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

type CreateParametersUserRequest

type CreateParametersUserRequest struct {
	Weight        int32        `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	Height        int32        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Age           int32        `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	Gender        int32        `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
	Activity      UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"`
	Diet          UserDiet     `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"`
	DesiredWeight int32        `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"`
	Eat           int32        `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"`
	UserID        string
}

type CreateParametersUserResponse

type CreateParametersUserResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

type CreateTreningRequest

type CreateTreningRequest struct {
	Name      string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Interval  time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	Exercises []*Exercise   `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"`
	UserID    string
	Date      time.Time
}

type CreateTreningResponse

type CreateTreningResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    string
}

type DetailExerciseRequest

type DetailExerciseRequest struct {
	ID     string
	UserID string
}

type DetailExerciseResponse

type DetailExerciseResponse struct {
	Status  bool      `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *Exercise `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

type DetailParametersUserRequest

type DetailParametersUserRequest struct {
	ID     string
	UserID string
}

type DetailParametersUserResponse

type DetailParametersUserResponse struct {
	Status  bool            `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string          `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *ParametersUser `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

type DetailTreningRequest

type DetailTreningRequest struct {
	UID    string
	UserID string
}

type DetailTreningResponse

type DetailTreningResponse struct {
	Status  bool     `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *Trening `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

type Exercise

type Exercise struct {
	Name                string        `json:"name,omitempty"`
	Duration            time.Duration `json:"duration,omitempty"`
	Relax               time.Duration `json:"relax,omitempty"`
	Count               int32         `json:"count,omitempty"`
	NumberOfSets        int32         `json:"number_of_sets,omitempty"`
	NumberOfRepetitions int32         `json:"number_of_repetitions,omitempty"`
	Type                ExerciseType  `json:"type,omitempty"`
	UID                 string        `json:"uid,omitempty"`
	Image               string        `json:"image,omitempty"`
	Video               string        `json:"video,omitempty"`
	Description         string        `json:"description,omitempty"`
	Technique           string        `json:"technique,omitempty"`
	Mistake             string        `json:"mistake,omitempty"`
	Weight              int32         `json:"weight,omitempty"`
}

type ExerciseType

type ExerciseType int32

type ListExerciseRequest

type ListExerciseRequest struct {
	UserID string
}

type ListExerciseResponse

type ListExerciseResponse struct {
	Status  bool        `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*Exercise `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	UserID  string
}

type ListTreningRequest

type ListTreningRequest struct {
	UserID string
	Status int
}

type ListTreningResponse

type ListTreningResponse struct {
	Status  bool       `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*Trening `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
}

type ParametersUser

type ParametersUser struct {
	Weight        int32        `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	Height        int32        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Age           int32        `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	Gender        int32        `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
	Activity      UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"`
	Diet          UserDiet     `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"`
	DesiredWeight int32        `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"`
	Eat           int32        `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"`
	Username      string       `protobuf:"varint,8,opt,name=username,proto3" json:"username,omitempty"`
	UID           string
	Image         string
}

type Trening

type Trening struct {
	UID       string
	Name      string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Interval  time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	Exercises []*Exercise   `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"`
	Date      time.Time     `json:"date" db:"date"`
	Image     string        `json:"image"`
}

type UpdateTreningExercisesRequest

type UpdateTreningExercisesRequest struct {
	UID       string
	UserID    string
	Exercises []*Exercise
}

type UpdateTreningExercisesResponse

type UpdateTreningExercisesResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

type UpdateTreningRequest

type UpdateTreningRequest struct {
	ID        string
	Name      string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Interval  time.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	Exercises []*Exercise   `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"`
	UserID    string
}

type UpdateTreningResponse

type UpdateTreningResponse struct {
}

type UpdateTreningStatusRequest

type UpdateTreningStatusRequest struct {
	UID    string
	UserID string
	Status int
}

type UpdateTreningStatusResponse

type UpdateTreningStatusResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

type UpdateUserImageRequest

type UpdateUserImageRequest struct {
	FileName string
	Image    string
	UserID   string
	Body     []byte
}

type UpdateUserImageResponse

type UpdateUserImageResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Code    int    `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
}

type UpdateUserParamsRequest

type UpdateUserParamsRequest struct {
	Weight        int32        `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	Height        int32        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Age           int32        `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	Gender        int32        `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
	Activity      UserActivity `protobuf:"varint,5,opt,name=activity,proto3,enum=trening.UserActivity" json:"activity,omitempty"`
	Diet          UserDiet     `protobuf:"varint,6,opt,name=diet,proto3,enum=trening.UserDiet" json:"diet,omitempty"`
	DesiredWeight int32        `protobuf:"varint,7,opt,name=desired_weight,json=desiredWeight,proto3" json:"desired_weight,omitempty"`
	Eat           int32        `protobuf:"varint,8,opt,name=eat,proto3" json:"eat,omitempty"`
	UserID        string
	UID           string
}

type UpdateUserParamsResponse

type UpdateUserParamsResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

type UserActivity

type UserActivity int32

type UserDiet

type UserDiet int32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL