parent
4f4201a9ca
commit
c238ba648a
@ -1,5 +1,5 @@
|
||||
package go_library
|
||||
|
||||
func Version() string {
|
||||
return "1.0.138"
|
||||
return "1.0.139"
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
package wechatopen
|
||||
|
||||
import "context"
|
||||
|
||||
// NewSetComponentAccessToken 设置第三方平台access_token
|
||||
func (c *Client) NewSetComponentAccessToken(ctx context.Context, componentAccessToken string) {
|
||||
c.config.componentAccessToken = componentAccessToken
|
||||
}
|
||||
|
||||
// NewSetComponentVerifyTicket 设置第三方平台推送ticket
|
||||
func (c *Client) NewSetComponentVerifyTicket(ctx context.Context, componentVerifyTicket string) {
|
||||
c.config.componentVerifyTicket = componentVerifyTicket
|
||||
}
|
||||
|
||||
// NewSetPreAuthCode 设置第三方平台预授权码
|
||||
func (c *Client) NewSetPreAuthCode(ctx context.Context, preAuthCode string) {
|
||||
c.config.preAuthCode = preAuthCode
|
||||
}
|
||||
|
||||
// NewSetAuthorizerAppid 设置授权方appid
|
||||
func (c *Client) NewSetAuthorizerAppid(ctx context.Context, authorizerAppid string) {
|
||||
c.config.authorizerAppid = authorizerAppid
|
||||
}
|
||||
|
||||
// NewSetAuthorizerAccessToken 设置授权方access_token
|
||||
func (c *Client) NewSetAuthorizerAccessToken(ctx context.Context, authorizerAccessToken string) {
|
||||
c.config.authorizerAccessToken = authorizerAccessToken
|
||||
}
|
||||
|
||||
// NewSetAuthorizerRefreshToken 设置授权方refresh_token
|
||||
func (c *Client) NewSetAuthorizerRefreshToken(ctx context.Context, authorizerRefreshToken string) {
|
||||
c.config.authorizerRefreshToken = authorizerRefreshToken
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package migrator
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
// TableType table type implements TableType interface
|
||||
type TableType struct {
|
||||
SchemaValue string
|
||||
NameValue string
|
||||
TypeValue string
|
||||
CommentValue sql.NullString
|
||||
}
|
||||
|
||||
// Schema returns the schema of the table.
|
||||
func (ct TableType) Schema() string {
|
||||
return ct.SchemaValue
|
||||
}
|
||||
|
||||
// Name returns the name of the table.
|
||||
func (ct TableType) Name() string {
|
||||
return ct.NameValue
|
||||
}
|
||||
|
||||
// Type returns the type of the table.
|
||||
func (ct TableType) Type() string {
|
||||
return ct.TypeValue
|
||||
}
|
||||
|
||||
// Comment returns the comment of current table.
|
||||
func (ct TableType) Comment() (comment string, ok bool) {
|
||||
return ct.CommentValue.String, ct.CommentValue.Valid
|
||||
}
|
Loading…
Reference in new issue