92 lines
2.7 KiB
Go
92 lines
2.7 KiB
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
super_dto "quyun/v2/app/http/v1/dto"
|
|
"quyun/v2/app/requests"
|
|
)
|
|
|
|
// @provider
|
|
type super struct{}
|
|
|
|
func (s *super) Login(ctx context.Context, form *super_dto.LoginForm) (*super_dto.LoginResponse, error) {
|
|
return &super_dto.LoginResponse{}, nil
|
|
}
|
|
|
|
func (s *super) CheckToken(ctx context.Context) (*super_dto.LoginResponse, error) {
|
|
return &super_dto.LoginResponse{}, nil
|
|
}
|
|
|
|
func (s *super) ListUsers(ctx context.Context, page, limit int, username string) (*requests.Pager, error) {
|
|
return &requests.Pager{}, nil
|
|
}
|
|
|
|
func (s *super) GetUser(ctx context.Context, id int64) (*super_dto.UserItem, error) {
|
|
return &super_dto.UserItem{}, nil
|
|
}
|
|
|
|
func (s *super) UpdateUserStatus(ctx context.Context, id int64, form *super_dto.UserStatusUpdateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) UpdateUserRoles(ctx context.Context, id int64, form *super_dto.UserRolesUpdateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) ListTenants(ctx context.Context, page, limit int, name string) (*requests.Pager, error) {
|
|
return &requests.Pager{}, nil
|
|
}
|
|
|
|
func (s *super) CreateTenant(ctx context.Context, form *super_dto.TenantCreateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) GetTenant(ctx context.Context, id int64) (*super_dto.TenantItem, error) {
|
|
return &super_dto.TenantItem{}, nil
|
|
}
|
|
|
|
func (s *super) UpdateTenantStatus(ctx context.Context, id int64, form *super_dto.TenantStatusUpdateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) UpdateTenantExpire(ctx context.Context, id int64, form *super_dto.TenantExpireUpdateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) ListContents(ctx context.Context, page, limit int) (*requests.Pager, error) {
|
|
return &requests.Pager{}, nil
|
|
}
|
|
|
|
func (s *super) UpdateContentStatus(ctx context.Context, tenantID, contentID int64, form *super_dto.SuperTenantContentStatusUpdateForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) ListOrders(ctx context.Context, page, limit int) (*requests.Pager, error) {
|
|
return &requests.Pager{}, nil
|
|
}
|
|
|
|
func (s *super) GetOrder(ctx context.Context, id int64) (*super_dto.SuperOrderDetail, error) {
|
|
return &super_dto.SuperOrderDetail{}, nil
|
|
}
|
|
|
|
func (s *super) RefundOrder(ctx context.Context, id int64, form *super_dto.SuperOrderRefundForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *super) OrderStatistics(ctx context.Context) (*super_dto.OrderStatisticsResponse, error) {
|
|
return &super_dto.OrderStatisticsResponse{}, nil
|
|
}
|
|
|
|
func (s *super) UserStatistics(ctx context.Context) ([]super_dto.UserStatistics, error) {
|
|
return []super_dto.UserStatistics{}, nil
|
|
}
|
|
|
|
func (s *super) UserStatuses(ctx context.Context) ([]requests.KV, error) {
|
|
return []requests.KV{}, nil
|
|
}
|
|
|
|
func (s *super) TenantStatuses(ctx context.Context) ([]requests.KV, error) {
|
|
return []requests.KV{}, nil
|
|
}
|