Documentation
¶
Index ¶
- func GetAppList(c *gin.Context)
- func GetList(c *gin.Context)
- func GetSecurity(c *gin.Context)
- func Load(r *gin.RouterGroup)
- func PostCreate(c *gin.Context)
- func PostNew(c *gin.Context)
- func PostSecurity(c *gin.Context)
- func PutCorporate(c *gin.Context)
- func PutSecurity(c *gin.Context)
- type CreateEnterpriseAreaPermissionReq
- type DeleteEnterpriseAreaPermissionReq
- type EnterpriseReq
- type Pagination
- type PostEmploymentReq
- type PostNewReq
- type PostSecurityReq
- type PostSuperviseReq
- type PutCorporateReq
- type PutEmploymentReq
- type PutSecurityReq
- type SelectEnterpriseAreaPermissionReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppList ¶
GetAppList @Tags open-apis/core @summary 小程序获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/enterprise/applist [get]
func GetList ¶
GetList @Tags open-apis/core @summary 获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/enterprise/list [get]
func GetSecurity ¶
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 ¶
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 ¶
PostNew @Tags open-apis/core @summary 小程序新用户新增安保单位接口 @Accept json @Produce json @Param params body PostNewReq true "请求参数体" @Router /open-apis/core/enterprise/new [post]
func PostSecurity ¶
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 ¶
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 ¶
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 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 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"` }