Documentation ¶
Index ¶
- Constants
- func IterateNestedCategory(parent *model_public.Categories, categories []*model_public.Categories, ...) error
- func RegisterAkunApi(g *v2_gots_sdk.SdkGroup, db *gorm.DB, repo *repo.AkunRepo)
- func RegisterCategoryApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)
- func RegisterCekbotApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)
- func RegisterCheckVerifApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)
- func RegisterCommand(g *v2_gots_sdk.SdkGroup, upload *upload_app.UploadApp, base string)
- func RegisterDeleterApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)
- func RegisterShopeeCategoryApi(sdk *v2_gots_sdk.ApiSdk, base repo.BaseInterface)
- func RegisterSubmitApi(grp *v2_gots_sdk.SdkGroup, base repo.BaseInterface)
- type AkunApi
- type AkunDeletePayload
- type AkunListQuery
- type AkunListResponse
- type AkunResetPayload
- type AkunUpdatePayload
- type AutoSuggestStatus
- type BulkItem
- type BulkPayload
- type CategoryApi
- type CategoryDumpApi
- type CategoryDumpHandler
- type CekbotAkun
- type CekbotApi
- type CheckVerifApi
- type DataFilterApi
- type DeleteEtalaseQuery
- type DeleteSettingRes
- type DeleterApi
- type DumpCategoryResponse
- type EtalaseMapApi
- type GetMapQuery
- type ListMapEtalaseQuery
- type ListMapEtalaseRes
- type Pagination
- type Response
- type RunCheckVerifPayload
- type RunCheckbotPayload
- type ShopeeCategoryApi
- type ShopeeMapSuggestItem
- type ShopeeTopedMapApi
- func (mapi *ShopeeTopedMapApi) AutoSuggest(c *gin.Context)
- func (mapi *ShopeeTopedMapApi) GetCollectionCategories(c *gin.Context) ([]mongorepo.ProductCategoryAgg, error)
- func (mapi *ShopeeTopedMapApi) GetConfig(c *gin.Context)
- func (mapi *ShopeeTopedMapApi) GetMap(c *gin.Context)
- func (mapi *ShopeeTopedMapApi) StatusAutoSuggest(c *gin.Context)
- func (mapi *ShopeeTopedMapApi) TokopediaCollectionCategory(ctx *gin.Context)
- func (mapi *ShopeeTopedMapApi) UpdateConfig(c *gin.Context)
- func (mapi *ShopeeTopedMapApi) UpdateMap(c *gin.Context)
- type ShopeeTopedMapResponse
- type SubmitApi
- type SuggestStatusType
- type TokopediaMapItem
- type TokopediaMapQuery
- type UploadApi
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 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 AkunDeletePayload ¶ added in v1.0.3
type AkunDeletePayload struct {
Usernames []string `json:"usernames"`
}
type AkunListQuery ¶ added in v1.0.3
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 AutoSuggestStatus ¶
type AutoSuggestStatus struct { sync.Mutex Status SuggestStatusType `json:"status"` }
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 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 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 RunCheckVerifPayload ¶
type RunCheckVerifPayload struct { Fname string `json:"fname"` Akuns []*report.CekVerifReport }
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 SuggestStatusType ¶
type SuggestStatusType string
const ( SUGGEST_RUN SuggestStatusType = "RUNNING" SUGGEST_STOP SuggestStatusType = "STOPPED" )
type TokopediaMapItem ¶ added in v1.1.16
type TokopediaMapQuery ¶ added in v1.1.16
type TokopediaMapQuery struct {
Namespace string `json:"namespace" form:"namespace" schema:"namespace"`
}
Click to show internal directories.
Click to hide internal directories.