Documentation
¶
Index ¶
- func CreateToken(c *gin.Context, user *models.User)
- func CreateUser(ctx context.Context, username, password string) (int64, error)
- func GetCity(ctx context.Context, id string) (*models.City, error)
- func GetLocationByIP(ip string) *models.Location
- func GetProvince(ctx context.Context, id string) (*models.Province, error)
- func GetUser(ctx context.Context, id int64) (*models.User, error)
- func ListCities(ctx context.Context) (*[]models.City, error)
- func ListProvince(ctx context.Context) (*[]models.Province, error)
- func ListUsers(ctx context.Context) (*[]models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocationByIP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.