enterprise

package
v0.0.0-...-ae394c8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppList

func GetAppList(c *gin.Context)

GetAppList @Tags open-apis/core @summary 小程序获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/enterprise/applist [get]

func GetList

func GetList(c *gin.Context)

GetList @Tags open-apis/core @summary 获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/enterprise/list [get]

func GetSecurity

func GetSecurity(c *gin.Context)

GetSecurity @Tags open-apis/core @summary 获取安保单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param name query string false "名称" @Param serial query string false "信用代码" @Param address_code query string false "区域编码" @Router /open-apis/core/enterprise/security [get]

func Load

func Load(r *gin.RouterGroup)

func PostCreate

func PostCreate(c *gin.Context)

PostCreate @Tags open-apis/core @summary 小程序老用户新增安保单位(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body PostSecurityReq true "请求参数体" @Router /open-apis/core/enterprise/create [post]

func PostNew

func PostNew(c *gin.Context)

PostNew @Tags open-apis/core @summary 小程序新用户新增安保单位接口 @Accept json @Produce json @Param params body PostNewReq true "请求参数体" @Router /open-apis/core/enterprise/new [post]

func PostSecurity

func PostSecurity(c *gin.Context)

PostSecurity @Tags open-apis/core @summary 新增安保单位(UserAccessToken) @Accept json @Produce json @Security bearer @Param req body PostSecurityReq true "请求参数" @Router /open-apis/core/enterprise/security [post]

func PutCorporate

func PutCorporate(c *gin.Context)

PutCorporate @Tags open-apis/core @summary 修改单位负责人(UserAccessToken) @Accept json @Produce json @Security bearer @Param req body PutCorporateReq true "请求参数" @Router /open-apis/core/enterprise/corporate [put]

func PutSecurity

func PutSecurity(c *gin.Context)

PutSecurity @Tags open-apis/core @summary 修改单位基本信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param req body PutSecurityReq true "请求参数" @Router /open-apis/core/enterprise/security [put]

Types

type CreateEnterpriseAreaPermissionReq

type CreateEnterpriseAreaPermissionReq struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	Province     string `json:"province"  form:"province" query:"province"`
	City         string `json:"city"  form:"city" query:"city"`
	District     string `json:"district"  form:"district" query:"district"`
	County       string `json:"county"  form:"county" query:"county"`
	AddressCode  string `json:"address_code" form:"address_code" query:"address_code"`
}

type DeleteEnterpriseAreaPermissionReq

type DeleteEnterpriseAreaPermissionReq struct {
	Pk string `json:"pk"  form:"pk" query:"pk"`
}

type EnterpriseReq

type EnterpriseReq struct {
	Pagination
	Name        string `json:"name"  form:"name" query:"name"`
	Type        int32  `json:"type" form:"type" query:"type"`
	Cover       string `json:"cover" form:"cover" query:"cover"`
	Serial      string `json:"serial" form:"serial"  query:"serial"`
	License     string `json:"license" form:"license"  query:"license"`
	Country     string `json:"country" form:"country"  query:"country"`
	Province    string `json:"province" form:"province"  query:"province"`
	City        string `json:"city" form:"city"  query:"city"`
	District    string `json:"district" form:"district"  query:"district"`
	County      string `json:"county" form:"county"  query:"county"`
	Site        string `json:"site" form:"site"  query:"site"`
	CorporatePk string `json:"corporate_pk" form:"corporate_pk" query:"corporate_pk"`
	Longitude   string `json:"longitude" db:"longitude"  query:"longitude"`
	Latitude    string `json:"latitude" db:"latitude"  query:"latitude"`
	AddressCode string `json:"address_code" db:"address_code"  query:"address_code"`
}

type Pagination

type Pagination struct {
	Page int32 `json:"page" form:"page" query:"page"`
	Size int32 `json:"size" form:"size" query:"size"`
}

type PostEmploymentReq

type PostEmploymentReq struct {
	Name        string `json:"name"`
	Country     string `json:"country" `
	Province    string `json:"province"`
	City        string `json:"city"`
	District    string `json:"district"`
	County      string `json:"county" `
	Site        string `json:"site"`
	Longitude   string `json:"longitude"`
	Latitude    string `json:"latitude"`
	AddressCode string `json:"address_code"`
}

type PostNewReq

type PostNewReq struct {
	Phone          string `json:"phone"  form:"phone" query:"phone"`
	UserName       string `json:"user_name"  form:"user_name" query:"user_name"`
	Country        string `json:"country"  form:"country" query:"country"`
	Province       string `json:"province"  form:"province" query:"province"`
	City           string `json:"city"  form:"city" query:"city"`
	District       string `json:"district"  form:"district" query:"district"`
	County         string `json:"county"  form:"county" query:"county"`
	Site           string `json:"site"  form:"site" query:"site"`
	Longitude      string `json:"longitude"  form:"longitude" query:"longitude"`
	Latitude       string `json:"latitude"  form:"latitude" query:"latitude"`
	EnterpriseName string `json:"enterprise_name"  form:"enterprise_name" query:"enterprise_name"`
	Code           string `json:"code"  form:"code" query:"code"`
	StaffSize      string `json:"staff_size" form:"staff_size" query:"staff_size"`
	AddressCode    string `json:"address_code" form:"address_code" query:"address_code"`
}

type PostSecurityReq

type PostSecurityReq struct {
	Name        string `json:"name"`
	StaffSize   string `json:"staff_size"`
	Country     string `json:"country" `
	Province    string `json:"province"`
	City        string `json:"city"`
	District    string `json:"district"`
	County      string `json:"county" `
	Site        string `json:"site"`
	Longitude   string `json:"longitude"`
	Latitude    string `json:"latitude"`
	AddressCode string `json:"address_code"`
}

type PostSuperviseReq

type PostSuperviseReq struct {
	Name        string `json:"name"`
	Country     string `json:"country" `
	Province    string `json:"province"`
	City        string `json:"city"`
	District    string `json:"district"`
	County      string `json:"county" `
	Site        string `json:"site"`
	Longitude   string `json:"longitude"`
	Latitude    string `json:"latitude"`
	AddressCode string `json:"address_code"`
}

type PutCorporateReq

type PutCorporateReq struct {
	Pk          string `json:"pk"`
	CorporatePk string `json:"corporatePk"`
}

type PutEmploymentReq

type PutEmploymentReq struct {
	Pk          string `json:"pk"`
	Name        string `json:"name"`
	Country     string `json:"country" `
	Province    string `json:"province"`
	City        string `json:"city"`
	District    string `json:"district"`
	County      string `json:"county" `
	Site        string `json:"site"`
	Longitude   string `json:"longitude"`
	Latitude    string `json:"latitude"`
	AddressCode string `json:"address_code"`
}

type PutSecurityReq

type PutSecurityReq struct {
	Pk          string `json:"pk"`
	Name        string `json:"name"`
	StaffSize   string `json:"staff_size"`
	Country     string `json:"country" `
	Province    string `json:"province"`
	City        string `json:"city"`
	District    string `json:"district"`
	County      string `json:"county" `
	Site        string `json:"site"`
	Longitude   string `json:"longitude"`
	Latitude    string `json:"latitude"`
	AddressCode string `json:"address_code"`
}

type SelectEnterpriseAreaPermissionReq

type SelectEnterpriseAreaPermissionReq struct {
	Pagination
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
}

Jump to

Keyboard shortcuts

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