service_api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 3 Imported by: 0

README

Service API

This directory holds service interfaces that define the business logic layer.

Directory Guidelines

  • Create domain-specific subdirectories for complex implementations (e.g., order/).
  • Directly add service interfaces as .go files if not creating subdirectories.
Example Structure
api
├── sub-directory                           # when hit a complexity
│   └── api_<group_name>_<some_action>.go
└── api_some_action.go                      # when simple implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServiceAPI

type UserServiceAPI interface {
	Find(ctx context.Context, p service_attribute.UserFindAttribute) (*entity.User, error)
}

Jump to

Keyboard shortcuts

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