api

package
v1.1.39 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE_NEW_CONSOLE = 0x10
)

Variables

This section is empty.

Functions

func IterateNestedCategory added in v1.1.12

func IterateNestedCategory(parent *model_public.Categories, categories []*model_public.Categories, handler CategoryDumpHandler) error

func RegisterAkunApi added in v1.0.3

func RegisterAkunApi(g *v2_gots_sdk.SdkGroup, db *gorm.DB, repo *repo.AkunRepo)

func RegisterCategoryApi

func RegisterCategoryApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)

func RegisterCekbotApi

func RegisterCekbotApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)

func RegisterCheckVerifApi

func RegisterCheckVerifApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)

func RegisterCommand added in v1.0.3

func RegisterCommand(g *v2_gots_sdk.SdkGroup, upload *upload_app.UploadApp, base string)

func RegisterDeleterApi

func RegisterDeleterApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)

func RegisterShopeeCategoryApi

func RegisterShopeeCategoryApi(sdk *v2_gots_sdk.ApiSdk, base repo.BaseInterface)

func RegisterSubmitApi

func RegisterSubmitApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)

Types

type AkunApi added in v1.0.3

type AkunApi struct {
	// contains filtered or unexported fields
}

func NewAkunApi added in v1.0.3

func NewAkunApi(db *gorm.DB, repo *repo.AkunRepo) *AkunApi

func (*AkunApi) BulkAdd added in v1.0.3

func (akapi *AkunApi) BulkAdd(ctx *gin.Context)

func (*AkunApi) Delete added in v1.0.3

func (akapi *AkunApi) Delete(ctx *gin.Context)

func (*AkunApi) List added in v1.0.3

func (api *AkunApi) List(ctx *gin.Context)

func (*AkunApi) ResetAll added in v1.0.3

func (akapi *AkunApi) ResetAll(ctx *gin.Context)

func (*AkunApi) Update added in v1.0.3

func (akapi *AkunApi) Update(ctx *gin.Context)

type AkunDeletePayload added in v1.0.3

type AkunDeletePayload struct {
	Usernames []string `json:"usernames"`
}

type AkunListQuery added in v1.0.3

type AkunListQuery struct {
	Offset int    `json:"offset" form:"offset"`
	Limit  int    `json:"limit" form:"limit"`
	Search string `json:"search" form:"search"`
}

type AkunListResponse added in v1.0.3

type AkunListResponse struct {
	Response
	Data []*repo.AkunItem `json:"data"`

	Pagination Pagination `json:"pagination"`
}

type AkunResetPayload added in v1.0.3

type AkunResetPayload struct {
	Usernames []string `json:"usernames"`
}

type AkunUpdatePayload added in v1.0.3

type AkunUpdatePayload struct {
	Data []*repo.AkunItem `json:"data"`
}

type AutoSuggestStatus

type AutoSuggestStatus struct {
	sync.Mutex
	Status SuggestStatusType `json:"status"`
}

type BulkItem added in v1.0.3

type BulkItem struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Secret   string `json:"secret"`
}

type BulkPayload added in v1.0.3

type BulkPayload struct {
	Data []*BulkItem `json:"data"`
}

type CategoryApi

type CategoryApi struct {
	// contains filtered or unexported fields
}

func (*CategoryApi) GetListCateg

func (catapi *CategoryApi) GetListCateg(c *gin.Context)

func (*CategoryApi) UpdateCateg

func (catapi *CategoryApi) UpdateCateg(c *gin.Context)

type CategoryDumpApi added in v1.1.12

type CategoryDumpApi struct {
	// contains filtered or unexported fields
}

func NewCategoryDumpApi added in v1.1.12

func NewCategoryDumpApi(base baseInterface, pubapi *api_public.TokopediaApiPublic) *CategoryDumpApi

func (*CategoryDumpApi) DumpCategory added in v1.1.12

func (api *CategoryDumpApi) DumpCategory(c *gin.Context)

func (*CategoryDumpApi) RegisterApi added in v1.1.12

func (api *CategoryDumpApi) RegisterApi(grp *v2_gots_sdk.SdkGroup)

type CategoryDumpHandler added in v1.1.12

type CategoryDumpHandler func(parent, category *model_public.Categories) error

type CekbotAkun

type CekbotAkun struct {
}

type CekbotApi

type CekbotApi struct {
	// contains filtered or unexported fields
}

func (*CekbotApi) RunCekbot

func (cekbot *CekbotApi) RunCekbot(ctx *gin.Context)

type CheckVerifApi

type CheckVerifApi struct {
	// contains filtered or unexported fields
}

func (*CheckVerifApi) RunCekverif

func (cekbot *CheckVerifApi) RunCekverif(ctx *gin.Context)

type DataFilterApi added in v1.1.2

type DataFilterApi struct {
	// contains filtered or unexported fields
}

func NewDataFilterApi added in v1.1.2

func NewDataFilterApi(
	base baseInterface,

) *DataFilterApi

func (*DataFilterApi) FcityData added in v1.1.2

func (fapi *DataFilterApi) FcityData(ctx *gin.Context)

func (*DataFilterApi) RegisterApi added in v1.1.2

func (fapi *DataFilterApi) RegisterApi(grp *v2_gots_sdk.SdkGroup)

func (*DataFilterApi) ShippingsData added in v1.1.20

func (fapi *DataFilterApi) ShippingsData(ctx *gin.Context)

type DeleteEtalaseQuery

type DeleteEtalaseQuery struct {
	Name string `json:"name" form:"name"`
}

type DeleteSettingRes

type DeleteSettingRes struct {
	Data *deleter_product.DeleteConfig `json:"data"`
}

type DeleterApi

type DeleterApi struct {
	// contains filtered or unexported fields
}

func (*DeleterApi) GetSetting

func (runapi *DeleterApi) GetSetting(c *gin.Context)

func (*DeleterApi) RunDelete

func (runapi *DeleterApi) RunDelete(c *gin.Context)

func (*DeleterApi) UpdateSetting

func (runapi *DeleterApi) UpdateSetting(c *gin.Context)

type DumpCategoryResponse added in v1.1.12

type DumpCategoryResponse struct {
	ErrCode int    `json:"errcode"`
	Message string `json:"message,omitempty"`
	Status  string `json:"status,omitempty"`
}

type EtalaseMapApi

type EtalaseMapApi struct {
	// contains filtered or unexported fields
}

func NewEtalaseMapApi

func NewEtalaseMapApi(
	service *services.EtalaseMapService,
) *EtalaseMapApi

func (*EtalaseMapApi) DeleteEtalase

func (api *EtalaseMapApi) DeleteEtalase(ctx *gin.Context)

func (*EtalaseMapApi) ListMapEtalase added in v1.0.2

func (api *EtalaseMapApi) ListMapEtalase(ctx *gin.Context)

func (*EtalaseMapApi) RegisterApi

func (api *EtalaseMapApi) RegisterApi(gr *v2_gots_sdk.SdkGroup)

func (*EtalaseMapApi) UpdateMapEtalase added in v1.0.2

func (api *EtalaseMapApi) UpdateMapEtalase(ctx *gin.Context)

type GetMapQuery

type GetMapQuery struct {
	Collection string `json:"collection" form:"collection"`
}

type ListMapEtalaseQuery added in v1.0.2

type ListMapEtalaseQuery struct {
	Namespace string `json:"namespace" form:"namespace"`
}

type ListMapEtalaseRes added in v1.0.2

type ListMapEtalaseRes struct {
	Data []*services.ShopeeEtalaseMapItem `json:"data"`
}

type Pagination added in v1.0.3

type Pagination struct {
	Offset int   `json:"offset"`
	Limit  int   `json:"limit"`
	Count  int64 `json:"count"`
}

type Response

type Response struct {
	Msg string `json:"msg"`
	Err string `json:"error"`
}

type RunCheckVerifPayload

type RunCheckVerifPayload struct {
	Fname string `json:"fname"`
	Akuns []*cek_verification.VerifDriverAccount
}

type RunCheckbotPayload

type RunCheckbotPayload struct {
	Fname string `json:"fname"`
	Akuns []*tokopedia_lib.DriverAccount
}

type ShopeeCategoryApi

type ShopeeCategoryApi struct {
	// contains filtered or unexported fields
}

func (*ShopeeCategoryApi) UpdateCategoryTokopedia

func (a *ShopeeCategoryApi) UpdateCategoryTokopedia(ctx *gin.Context)

type ShopeeMapSuggestItem

type ShopeeMapSuggestItem struct {
	// contains filtered or unexported fields
}

func NewShopeeMapSuggestItem

func NewShopeeMapSuggestItem(db *gorm.DB, data *mongorepo.ProductCategoryAgg) *ShopeeMapSuggestItem

func (*ShopeeMapSuggestItem) GetName

func (item *ShopeeMapSuggestItem) GetName() string

func (*ShopeeMapSuggestItem) SetTokopediaID

func (item *ShopeeMapSuggestItem) SetTokopediaID(categid int) error

type ShopeeTopedMapApi

type ShopeeTopedMapApi struct {
	SuggestStatus *AutoSuggestStatus
	// contains filtered or unexported fields
}

func RegisterShopeeTopedMap

func RegisterShopeeTopedMap(
	grp *v2_gots_sdk.SdkGroup,
	db *gorm.DB,
	prodrepo *mongorepo.ProductRepo,
	mapper *category_mapper.Mapper,
) *ShopeeTopedMapApi

func (*ShopeeTopedMapApi) AutoSuggest

func (mapi *ShopeeTopedMapApi) AutoSuggest(c *gin.Context)

func (*ShopeeTopedMapApi) GetCollectionCategories

func (mapi *ShopeeTopedMapApi) GetCollectionCategories(c *gin.Context) ([]mongorepo.ProductCategoryAgg, error)

func (*ShopeeTopedMapApi) GetConfig

func (mapi *ShopeeTopedMapApi) GetConfig(c *gin.Context)

func (*ShopeeTopedMapApi) GetMap

func (mapi *ShopeeTopedMapApi) GetMap(c *gin.Context)

func (*ShopeeTopedMapApi) StatusAutoSuggest

func (mapi *ShopeeTopedMapApi) StatusAutoSuggest(c *gin.Context)

func (*ShopeeTopedMapApi) TokopediaCollectionCategory added in v1.1.16

func (mapi *ShopeeTopedMapApi) TokopediaCollectionCategory(ctx *gin.Context)

func (*ShopeeTopedMapApi) UpdateConfig

func (mapi *ShopeeTopedMapApi) UpdateConfig(c *gin.Context)

func (*ShopeeTopedMapApi) UpdateMap

func (mapi *ShopeeTopedMapApi) UpdateMap(c *gin.Context)

type ShopeeTopedMapResponse

type ShopeeTopedMapResponse struct {
	Data []*config.ShopeeMapItem `json:"data"`
}

type SubmitApi

type SubmitApi struct {
	// contains filtered or unexported fields
}

func (*SubmitApi) Run

func (sub *SubmitApi) Run(ctx *gin.Context)

type SuggestStatusType

type SuggestStatusType string
const (
	SUGGEST_RUN  SuggestStatusType = "RUNNING"
	SUGGEST_STOP SuggestStatusType = "STOPPED"
)

type TokopediaMapItem added in v1.1.16

type TokopediaMapItem struct {
	ShopeeID              int64    `json:"shopee_id"`
	TokopediaID           int      `json:"tokopedia_id"`
	Count                 int      `json:"product_count"`
	ShopeeCategoryName    []string `json:"shopee_category_name"`
	TokopediaCategoryName []string `json:"tokopedia_category_name"`
}

type TokopediaMapQuery added in v1.1.16

type TokopediaMapQuery struct {
	Namespace string `json:"namespace" form:"namespace" schema:"namespace"`
}

type UploadApi added in v1.0.3

type UploadApi struct {
	Base string
	// contains filtered or unexported fields
}

func (*UploadApi) Start added in v1.0.3

func (upapi *UploadApi) Start(ctx *gin.Context)

func (*UploadApi) Status added in v1.0.3

func (api *UploadApi) Status(ctx *gin.Context)

func (*UploadApi) Stop added in v1.0.3

func (upapi *UploadApi) Stop(ctx *gin.Context)

Jump to

Keyboard shortcuts

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